Format - method of the PmFormat object
Description:
Conversion of the value into a text string according to the specified format.
Syntax:
String Format(Variant vVal)
Parameters:
| vVal | (Variant) The value that will be converted into a text string according to the specified format. |
|---|
Example1:
JavaScriptVBScriptSelect and copy to clipboard
var oFmt = Pm.CreatePmFormat("Group:1;DLen:3;");
var sVal = oFmt.Format(47225.35458);
// sVal = "47 225.354"
Dim oFmt
Set oFmt = Pm.CreatePmFormat("Group:1;DLen:3;")
Dim sVal
sVal = oFmt.Format(47225.35458)
' sVal = "47 225.354"