mapSetValueAt - method of object PmMap

Sets the value of selected object property (creates the corresponding property if needed).
mapSetValueAt(sProp As String, vValue As Variant)
oMap.mapSetValueAt(sProp, vValue);
sProp(String) Property name.
vValue(Variant) Value that will be assigned to property.
The method can also be called in the graphic item events for Web panels.
The property can be created and/or value set directly ( = value). This method can be used for more general approach - for example the property name can be stored in another variable.

In Web panel that is written in VBScript language it is necessary to use this method to create properties. In this case it is not possible to create property just by assigning the value.

See also:
JavaScriptSelect and copy to clipboard

var oMap = Pm.CreatePmMap();
oMap.mapSetValueAt("Temperature", 85);
var val = oMap.mapGetValueAt("Temperature");
//val contains 85
PROMOTIC 8.3.30 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