Language Reference Guide : System Classes : EntryField Class : FormatString Attribute
 
Share this page          
FormatString Attribute
Data Type: varchar(256)
4GL Access: RW
The FormatString attribute contains the format string for the field.
Valid formats vary depending on the field's data type. If the format is not set, OpenROAD uses the data type's default format. Some examples are:
field(salary).FormatString = '"$$$,$$$,$$$.nn"';
field(salary).FormatString = 'f10.2';
field(purchase_date).FormatString = 'd"Feb 3, 1901"';
For a complete description of how to set data format templates in OpenROAD Workbench, see the Workbench User Guide. For more information about numeric formats, see "format specifications" in the Ingres 9.3 Character-based Querying and Reporting Tools User Guide.