mapGetPropNames - method of the PmMap object
Description:
Returns an array containing names of all dynamic properties.
Syntax:
PmArray mapGetPropNames()
Note:
This method is also functional in
Web panels.
The method always returns 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 mMap = Pm.CreatePmMap();
mMap.Temperature = 85;
mMap.Pressure = 1013.85;
var aNames = mMap.mapGetPropNames();
var sName1 = aNames.GetItem(0);
// contains "Temperature" or "Pressure"
var sName2 = aNames.GetItem(1);
// contains Temperature" or "Pressure"