Printing format functions
Function name | Feature |
---|---|
Edits and prints data in the format you specified. |
FORMAT / FORMAT2
Feature | Edit and prints data in the format you specified. | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Format | FORMAT(numeric_value_or_numeric_field_name,format_string) FORMAT2(character_field_name_or_numeric_field_name,format_string) | ||||||||||||||||||||||||||||||||||||||
Settings |
Example 1. Difference between the FORMAT function and the FORMAT2 function The printing result of the FORMAT and FORMAT2 printing format functions differs according to the edit-formula settings.
| ||||||||||||||||||||||||||||||||||||||
Edit method | "nZZZ,ZZZ,ZZ9.99m"
Reference
| ||||||||||||||||||||||||||||||||||||||
Usage examples |
ReferenceIn Example 2, as the output destination is a text field, "" (empty string) will be stored in the value of the field buffer as the default value. When you select the FORMAT function, 0 will appear according to the format. When the FORMAT2 function is used, the displayed value will remain as "".
ReferenceIn example 3, as the output destination is a numeric field, 0 (zero) will be stored in the value of the field buffer as the default value. When you select the FORMAT function, 0 will appear according to the format. Even when you select the FORMAT2 function, 0 will be displayed, in accordance with the format. |