Promotic
WikipediaLinkedInYoutubeTwitterFacebook

CreatePmArray - method of object Pm

Description:
Creates object of the PmArray type.
Syntax:
CreatePmArray As Array
Calling:
var arr = Pm.CreatePmArray()
Note:
In PROMOTIC JavaScript panels it is not possible to use the standard arrays of the VBScript and JavaScript languages (see Language data types). In these panels, all methods and properties use the PROMOTIC PmArray - see How to use array of values in the PROMOTIC system.
 
The method can also be called in the graphic item events for Web Panels.

The method is functional also in Macro expression $.expr.

Example1:
Creates and fill 1-dimensional array
var arr = Pm.CreatePmArray().Array1(10, 20, 30, 40);
Example2:
Creates and fills 2-dimensional array
var arr = Pm.CreatePmArray().Create(2, 3);
arr.SetItem(10, 0, 0);
arr.SetItem(20, 1, 0);
arr.SetItem(5, 0, 1);
arr.SetItem(15, 0, 2);
. . .
Navigation:
 
- Pm
 
- Abs
- Cos
- CreatePmArray
 
 
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice