Promotic
WikipediaLinkedInYoutubeTwitterFacebook

mapGetPropNames - method of object PmMap

Description:
Returns array containing names of all dynamic properties.
Syntax:
PmArray mapGetPropNames()
Calling:
aProps = oMap.mapGetPropNames();
Note:
This method is also functional in Web panels.
 
The method returns always 1-dimensional array of the PmArray type, i.e. for the VBScript language, it does not return array of the Array type type.
 
The order of names in the array is random. It is not sorted either alphabeticaly or by the order of creation od dynamic properties.
Example:
JavaScriptSelect and copy to clipboard

var oMap = Pm.CreatePmMap();
oMap.Temperature = 85;
oMap.Pressure = 1013.85;
var aNames = oMap.mapGetPropNames();
var sName1 = aNames.GetItem(0);  //contains "Temperature" or "Pressure"
var sName2 = aNames.GetItem(1);  //contains "Temperature" or "Pressure"

History:
Pm8.03.13: Returns array containing names of all dynamic properties
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