Update cookies preferences
Promotic

GetItem - method of the PmArray object

Description:
Returns the array item defined by indexes i and j.
Syntax:
Variant GetItem(Long i, [Long j])
Parameters:
i(Long) Array index (zero-based index).
j[optional] (Long) Array index (zero-based index).
In case of the 1-dimensional array the parameter is not used or its value is -1.
See (Col,Row) - 2-dimensional array meaning an array of rows.
Note:
This method is also functional in Web panels.
Example1:
1-dimensional array
JavaScriptSelect and copy to clipboard

var arr = Pm.CreatePmArray().Array1(10, 20, 30, 40);
var val = arr.GetItem(1);   // val = 20
Example2:
2-dimensional array
JavaScriptSelect and copy to clipboard

var arr = Pm.CreatePmArray(2, 3, 5);
arr.SetItem("Test", 0, 2);
var val = arr.GetItem(0, 2);   // val = Test

History:
Pm8.02.00: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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