|
Appendix A |
|
Format pictures give you the capability to format the way data is printed. The format picture consists of two distinct parts, a function string and template string, either or both of which may be present.
Function Strings
The function string specifies formatting that applies to the entire piece of information, rather than to particular character positions within it. The function string consists of the @ character, followed by one or more additional characters, each of which has a particular meaning (see table below). The function string must be the first element of a format picture and cannot contain spaces. A function string may be specified alone or with a template string. If both are present, the function string must precede the template string, and the two must be separated by a single space.
Template String
Examples
The following are examples of values and the affect that format pictures have on the way they are displayed.
Value: 123654987 Format Picture: 999,999,999 Displayed: 123,654,987
Value: John Smith Format Picture: @! Displayed: JOHN SMITH
Value: 009564311 Format Picture: @R 999-99-9999 Displayed: 009-56-4311
|