Update cookies preferences
Promotic

SetSubArray - method of the PmArray object

Description:
Assignment of the 1-dimensional array of values to the data items of the 2-dimensional array.
Syntax:
Boolean SetSubArray(String sType, Long nIndex, Array aArray)
Parameters:
sType(String) Type of selected values of the array:
"Row" - One row of the array (of the table) is selected.
The index value must be integer:
- index>=0 means the index of the selected row (zero-based index).
"Col" - One column of the array (of the table) is selected.
The index value must be integer:
- index>=0 means the index of the selected column (zero-based index).
nIndex(Long) Index into the table whose meaning is defined by the sType parameter.
aArray(Array) 1-dimensional array of values (PmArray object for JavaScript or Array data type for VBScript), that will be added to row or column of the 2-dimensional array.
Return value:
true - Assignment of values proceeded successfully.
false - Otherwise
Note:
This method is also functional in Web panels.
 
The method is functional only for 2-dimensional array.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var aRow = Pm.CreatePmArray().Array1(10, 20, 30, 40);
var result = oArray.SetSubArray("Row", 0, aRow);

History:
Pm9.00.25: Created
PROMOTIC 9.0.28 SCADA system documentation MICROSYS, spol. s r.o.

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