Update cookies preferences
Promotic

Array1 - method of the PmArray object

Description:
Creates and fills 1-dimensional array with values.
In order to create a 1-dimensional array it is often better to call the Pm.Array1 method, which creates the array without the need of calling the Pm.CreatePmArray method first.
Syntax:
Array Array1(Variant arglist)
Parameters:
arglist(Variant) Comma-delimited list of values that are assigned to the items of the array.
If no parameters are specified, then a zero length array is created.
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 fill it with values - see Example.
Note:
This method is also functional in Web panels.

The Create method can be used for general creation of 1- or 2-dimensional array.
Example:
Creates 1-dimensional array from values (10, 20, 30, 40)
JavaScriptSelect and copy to clipboard

var aVal = Pm.CreatePmArray().Array1(10, 20, 30, 40);
// or
var aVal = Pm.Array1(10, 20, 30, 40);

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

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