mapAdd - method of the PmMap object
Description:
Sets multiple values of selected object properties (creates the corresponding properties if needed).
Syntax:
Object mapAdd(Variant 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.
Example:
JavaScriptSelect and copy to clipboard
var oMap = Pm.CreatePmMap().mapAdd("Temperature", 85, "Pressure", 1.2);
var val = oMap.mapGetValueAt("Temperature");
//val contains 85