Promotic

LoadFromVbArray - method of the PmArray object

Description:
Fills in PmArray by copying from the VBScript array.
Syntax:
Empty LoadFromVbArray(Array aVbArray)
Parameters:
aVbArray(Array) VBScript array
Note:
This method is not functional in Web panels.
In VBScript scripts, the methods return VBScript arrays (VbArray) by default. If PmArray array is needed (e.g. Pm.JsonStringify method) then the LoadFromVbArray method allows to convert VBScript array into PmArray array.
The VBScript array (VbArray) can be exceptionally created by other programs so that, the indexing does not start from 0, but from 1 (see LBound). When such an array is converted to PmArray, the array is normalized so that the index starts at 0 by default.
See also:
Example:
JavaScriptSelect and copy to clipboard

var arr = Pm.CreatePmArray();
arr.LoadFromVbArray(aVbArray);

History:
Pm8.03.17: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.