Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetVarArray - method of the PmaData object

Description:
The assignment of values from the values array created by the GetVarArray method to all variables on the "Data" tab of this object.
Syntax:
Boolean SetVarArray(Array aArray)
Calling:
oData.SetVarArray(aArray)
Parameters:
aArray(Array) 1-dimensional array whose values have to be assigned to all variables on the "Data" tab. The number of items of the array must be equal to the number of variables on the "Data" tab.
Return values:
true - If the assignment passed successfully.
false - If the assignment failed.
Note:
The SetVarSubArray method serves to the assignment of the selected variables values on the "Data" tab.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var arr = Pm.CreatePmArray().Array1(7, 3.14, 22);
var oData = pMe.Pm("/Data");
oData.SetVarArray(arr);
PROMOTIC 9.0.12 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