GetSubArray - method of the PmArray object
Description:
Creates 1-dimensional array of values from selected data items of the 2-dimensional array.
Syntax:
Array GetSubArray(String sType, Long nIndex)
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. |
---|
Return value:
1-dimensional array of values (
PmArray object for
JavaScript or
Array data type for
VBScript).
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 = oArray.GetSubArray("Row", 0);
Dim aRow
aRow = oArray.GetSubArray("Row", 0)