Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Array1 - method of object PmArray

Description:
Creates and fills 1-dimensional array with values.
Syntax:
Array Array1(Variant arglist)
Calling:
a = Array1(arglist)
Parameters:
arglist(Variant) Comma-delimited list of values that are assigned to the elements of an array. If no parameters are specified, then an array of zero length is created.
Return Values:
The method returns the same object it was called upon. This is jus 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 arrays.
Example:
Creates 1-dimensional array from values (10, 20, 30, 40)
JavaScriptSelect and copy to clipboard

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

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