Promotic

GetSize - method of the PmArray object

Description:
Returns the array size in defined dimension.
Syntax:
Long GetSize(Long iDim)
Parameters:
iDim(Long) Specifies dimension.
1 - Returns the array size in defined dimension: 1
2 - Returns the array size in defined dimension: 2
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 nSize = arr.GetSize(1);   // nSize = 4
Example2:
2-dimensional array
JavaScriptSelect and copy to clipboard

var arr = Pm.CreatePmArray(2, 3, 5);
var nSize1 = arr.GetSize(1);   // nSize1 = 3
var nSize2 = arr.GetSize(2);   // nSize2 = 5

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.