Format - property of the PmfNumber object
Description:
The property returns or sets the format of the value that will be displayed in the object.
Values:
Object data type - Reference to the
PmFormat object.
This object enables formatting of the
PmfNumber object value according to the specified format.
null data type - The
PmFormat object is not set.
The value of the
PmfNumber object will not be formatted.
Note:
Property access
for read and write.
This property is also functional in
Web panels.
The formatting string can also be entered in the
sProps parameter of the
CreateItem method.
Not all format string keys are supported at this moment - for example the keys
LTxt:ss and
RTxt:ss.
Example:
JavaScriptSelect and copy to clipboard
oNumber.Format = Pm.CreatePmFormat("Type:Float;DLen:3;");
// Writing into the property
oNumber.Format = "Type:Float;DLen:3;";
// Writing into the property
var oFormat = oNumber.Format;
// Reading from the property
oNumber.Format = null;
// Cancels the formatting of the value of the PmfNumber object