Promotic
Login logon

GetProp - method of the PmFormat object

Description:
Reading the value from any property of the object defined by its name.
Syntax:
Variant GetProp(String sProp)
Parameters:
sProp(String) The name of the property (case sensitive text), identical to keys in PmFormat object formatting string.
Type - Value type (string).
Fmt - Time or time-range format (string).
FmtType - Time-range format type (number).
Table - Conversion table for Enum (1-dimensional array PmArray of PmMap objects with keys "v" and "n").
Note:
This method is also functional in Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard

oFmt = Pm.CreatePmFormat("Type:DateTime;Fmt:%4Y.%2d.%2m %2H:%2M:%2S");
var sType = oFmt.GetProp("Type");   // DateTime
var sFmt = oFmt.GetProp("Fmt");   // %4Y.%2d.%2m %2H:%2M:%2S

History:
Pm9.00.32: Created
PROMOTIC 9.0.34 SCADA system documentation MICROSYS, spol. s r.o.

Send page remark Contact responsible person
© MICROSYS, spol. s r.o.Update cookies preferences