SetVarSubArray - method of object PmData

The assignment of values from the values array created by the GetVarArray or GetVarSubArray method to the selected variables on the Data page of this object.
SetVarSubArray(vFrom As Variant, vTo As Variant, array As Array) As Boolean
oData.SetVarSubArray from, to, array
vFrom(Variant) Index (or name) of the first variable (zero-based index) to which the first value of the array has to be assigned
vTo(Variant) Index (or name) of the last variable (zero-based index) to which the last value of the array has to be assigned
array(Array) 1-dimensional array whose values have to be assigned to the selected variables
Return Values:
true - on successful assignment of values
false - Otherwise

Values will be assigned to variables with the index in the range of the vFrom and vTo (including) parameters.

The SetVarArray method serves to the assignment of values from the array to all variables.

VBScriptSelect and copy to clipboard

Dim arr
arr = Array(23, 45, 56)
oData.SetVarSubArray 1, 3, a
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice