Promotic
Login logon

Format - property of the PmfTableCell object

Description:
The property returns or sets the format of the value that will be displayed in the object.
 
If this property is not set, then it takes (inherits) its value from the same Format property of the parent object (of the PmfTableColumn object).
Syntax:
Variant Format
Values:
Object data type - Reference to the PmFormat object.
This object enables formatting of the cell value according to the specified format.
String data type - PmFormat object formatting string.
Creates the PmFormat object from the format string and enables formatting of the cell value according to the specified format.
null data type - The PmFormat object is not set.
The cell value will not be formatted.
"inherit" (default) - The property takes its value from the parent object
Note:
Property access for read and write.
 
This property is also functional in Web panels.
See also:
- PmFormat (object)
Example1:
JavaScriptSelect and copy to clipboard

oCell.Format = Pm.CreatePmFormat("Type:Float;DLen:3;");   // Writing into the property
oCell.Format = "Type:Float;DLen:3;";   // Writing into the property
var oFormat = oCell.Format;   // Reading from the property
oCell.Format = null;   // Cancels cell value formatting
oCell.Format = "inherit";   // The property takes its value from the parent object

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

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