Update cookies preferences
Promotic

GetDim - method of the PmArray object

Description:
The array dimension.
Syntax:
Long GetDim()
Return value:
0 - The array has not yet been created, i.e. the Pm.CreatePmArray method has been called without parameters and the Create method was not called.
1 - 1-dimensional array
2 - 2-dimensional array
Note:
This method is also functional in Web panels.
Example1:
1-dimensional array
JavaScriptSelect and copy to clipboard

var arr = Pm.CreatePmArray(1, 8);
var nSize = arr.GetDim();   // nSize = 1
Example2:
2-dimensional array
JavaScriptSelect and copy to clipboard

var arr = Pm.CreatePmArray(2, 3, 5);
var nSize = arr.GetDim();   // nSize = 2

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.