Update cookies preferences
Promotic

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"

History:
Pm9.00.14: Fixed bug: for Web panels returned also the names of static methods.
Pm8.03.13: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.