Update cookies preferences
Promotic

Create - method of the PmArray object

Description:
Creates a 1- or 2-dimensional array.
Syntax:
Array Create(Long nSize1, [Long nSize2])
Parameters:
nSize1(Long) first array size
nSize2[optional] (Long) second array size
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.
Return value:
The method returns the same object it was called upon. This method is just a helping instrument so the PmArray object can be created in the one row and then configured to desired size - see Example1.
Note:
This method is also functional in Web panels.

The Array1 method can sometimes be more effective for creation of the 1-dimensional array.
Example1:
JavaScriptSelect and copy to clipboard

var arr = Pm.CreatePmArray().Create(8);
Example2:
JavaScriptSelect and copy to clipboard

var arr = Pm.CreatePmArray().Create(3, 5);

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

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