COMPONENTFORMATTED (or CF) keyword
Applies To
All specifications
Description
Returns the formatted value of a named component
Syntax
COMPONENTFORMATTED( componentName ) or C( componentName )
Remarks
Can be used as an alternative to the COMPONENTS (or C) keyword, and all remarks that apply to that keyword also apply to this one. This keyword, however, is used in cases where the named component has an effective input mask. In such cases, when this keyword is used, the resulting value is formatted appropriately.
If the component is of data type DATE, then the locale settings for the short date format are applied to the resulting value, provided it is a valid date. Otherwise, the value remains unformatted.
If the component data type is numeric, then the locale settings for the decimal point character are applied to the resulting value.