mapSaveToString - method of the PmMap object
Description:
The method saves the content of the object (property names and values) into a text string.
Syntax:
String mapSaveToString(String sOper)
Parameters:
sOper | (String) Specifies the type of the operation - this is not used so far. It is necessary to enter "" (empty string). |
---|
Return value:
Returns a string in the form:
"Name1:Value1;Name2: … ;". This is a text in the
KeyVal format.
Example:
JavaScriptSelect and copy to clipboard
var mMap = Pm.CreatePmMap();
mMap.Temperature = 85;
mMap.Pressure = 1013.85;
var sRet = mMap.mapSaveToString("");
// sRet contains "Temperature:85;Pressure:1013.85;"