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 name and set value. |
---|
Return value:
The method returns the same object it was called upon. This is just 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 mMap = Pm.CreatePmMap().mapAdd("Temperature", 85, "Pressure", 1.2);
var val = mMap.mapGetValueAt("Temperature");
// val contains 85