Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Create - method of object PmArray

Description:
Creates a 1- or 2-dimensional array.
Syntax:
Array Create(Long nSize1, [Long nSize2])
Calling:
PmArray.Create(nSize1[,nSize2]);
Parameters:
nSize1(Long) first array dimension
nSize2[optional] (Long) second array dimension

If the 1-dimensional array is created the parameter is not used or its value is -1.

Return Values:
The method returns the same object it was called upon. This is just a helping instrument so the PmArray object can be created in the one row and then configured to desired size - see Example.
Note:
This method is also functional in Web panels.
 
The Array1 method can sometimes be more effective for creation of 1-dimensional arrays.
Example:
JavaScriptSelect and copy to clipboard

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

History:
Pm8.02.00: Created
PROMOTIC 9.0.7 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