Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetSize - method of the PmArray object

Description:
Returns the array size in defined dimension.
Syntax:
Long GetSize(Long iDim)
Parameters:
iDim(Long)
1 - Returns the size of the dimension: 1
2 - Returns the size of the 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().Create(3, 5);
var nSize1 = arr.GetSize(1);  //nSize1 = 3
var nSize2 = arr.GetSize(2);  //nSize2 = 5

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

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice