Promotic

GetDim - method of the PmArray object

Description:
The array dimension.
Syntax:
Long GetDim()
Return value:
0 - The field has not yet been created, i.e. the method Pm.CreatePmArray 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.27 SCADA system documentation MICROSYS, spol. s r.o.

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