Painting Fields on a Form - Output Field Types
Output fields only display data; they do not update data. They also are called display fields. A painted form indicates alphanumeric output fields by filling the field with lowercase x letters. It indicates numeric output fields in several ways depending on the field definition.
The following table shows several examples of output fields.
Display | Description |
---|---|
zzzzzzzz | A numeric field, 8 digits long. A lowercase z indicates the form suppresses leading zeroes (replaces them with spaces) when it displays the data. For example, it displays the value 00010000 as 10000. |
zzzzzzz.zz- | A signed field, 7 whole numbers and 2 decimal places. The form displays a negative sign (-) to show a negative value and a space to show a positive value. |
9,999,999.99CR | A signed field separated by commas. The form displays a credit sign (CR) to show a negative value and spaces to show a positive value. The number 9 indicates the form does not suppress leading zeroes when it displays the data. |
$,$$$,$$$.99- | The form displays a dollar sign ($) before the first number in the field. For example, it displays the value 100 as $100.00. The form suppresses leading zeroes on a dollar field. |
*******.99- | The form replaces leading zeroes with asterisks (*). For example, it displays 100 as ****100.00. |
.zzz% | A percent field. |
zz/zz/zz | A date field. |
zz:zz:zz | A time field. |