Promotic
WikipediaLinkedInYoutubeTwitterFacebook

mapLoadFromString - method of object PmMap

Description:
The method creates new properties and their values in the object. If the property already exists in the object, then only its value is changed.
Syntax:
Empty mapLoadFromString(String sOper, String sString)
Calling:
oMap.mapLoadFromString(sOper, sKeys);
Parameters:
sOper(String) Specifies the type of operation - this is not used so far. It is necessary to enter "".
sString(String) The text string containing definitions of property names and values.

The string syntax is: "Name1:Value1;Name2: ... ;". This is a text in the KeyVal format.

Note:
All values of these properties are of the String data type.
 
This method is also functional for Web panels.
See also:
Example:
JavaScriptSelect and copy to clipboard

var oMap = Pm.CreatePmMap();
oMap.mapLoadFromString("", "Temperature:85;Pressure:1013.85;");
//oMap.Temperature contains 85
//oMap.Pressure contains 1013.85

History:
Pm8.03.04: Created
PROMOTIC 9.0.4 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