Array1 - method of the Pm object
Description:
Creates and fills 1-dimensional array with values.
Syntax:
Array Array1(Variant arglist)
Parameters:
arglist | (Variant) List of values separated by comma that are assigned to the elements of the array.
If no parameters are specified, then a zero length array is created. |
---|
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.Array1(10, 20, 30, 40);
// or
var aVal = Pm.CreatePmArray().Array1(10, 20, 30, 40);