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)
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);
//or
var bDone = oData.SetVarArray(arr); //bDone = true or false
Dim arr, oData
arr = Array(7, 3.14, 22)
Set oData = pMe.Pm("/Data")
oData.SetVarArray arr
'or
Dim bDone
bDone = oData.SetVarArray(arr) 'bDone = true or false