Promotic
Login logon

Format - property of the PmfTableColumn object

Description:
The property returns or sets the format of the value that will be displayed in the object.
Syntax:
Variant Format
Values:
Object data type - Reference to the PmFormat object.
This object enables formatting of all cell values in a given column according to the specified format (except for cells that have their own formatting - see the Format property).
String data type - PmFormat object formatting string.
Creates the PmFormat object from the format string. and enables formatting of all cell values in the column according to the specified format (except for cells that have their own formatting - see the Format property).
null data type (default) - The PmFormat object is not set.
The cell values in the column will not be formatted.
Note:
Property access for read and write.
 
This property is also functional in Web panels.
See also:
- PmfTableCell.Format (property)
- PmFormat (object)
Example1:
JavaScriptSelect and copy to clipboard

oCol.Format = Pm.CreatePmFormat("Type:Float;DLen:3;");   // Writing into the property
oCol.Format = "Type:Float;DLen:3;";   // Writing into the property
var oFormat = oCol.Format;   // Reading from the property
oCol.Format = null;   // Cancels formatting of all cells in the column

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