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"). |
|---|
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
Set oFmt = Pm.CreatePmFormat("Type:DateTime;Fmt:%4Y.%2d.%2m %2H:%2M:%2S")
Dim sType
sType = oFmt.GetProp("Type")
' DateTime
Dim sFmt
sFmt = oFmt.GetProp("Fmt")
' %4Y.%2d.%2m %2H:%2M:%2S