Promotic
WikipediaLinkedInYoutubeTwitterFacebook

mapAdd - method of object PmMap

Description:
Sets multiple values of selected object properties (creates the corresponding properties if needed).
Syntax:
mapAdd(arglist)
Calling:
oMap.mapAdd(arglist);
Parameters:
arglist(Variant) The method has a variable number of parameters, but the number must always be even. The parameters represent pairs of property names and set values.
Return Values:
The method returns the same object it was called upon. This is jus a helping instrument so the PmMap object can be created in the one row and fill it with values - see Example.
Note:
This method is also functional for Web panels.
Example:
JavaScriptSelect and copy to clipboard

var oMap = Pm.CreatePmMap().mapAdd("Temperature", 85, "Pressure", 1.2);
var val = oMap.mapGetValueAt("Temperature");
//val contains 85

History:
Pm9.00.02: Created
PROMOTIC 9.0.3 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