Using Thousands Separators in Numeric Fields

The default is not to display thousands separators for numeric fields. If you want to display thousands separators in a numeric field, you must set the Numeric field:THSEPARATOR field option ON for that field.

When the THSEPARATOR field option is ON for a field, the field will be redisplayed with thousands separators when the user leaves the field. However, no thousands separators are displayed if there is no room in the field to display them, or if the number is being displayed in scientific notation. When the user enters the field, the thousands separators will be removed when the first keystroke is entered.

Designer: You cannot change the default system thousands separator from within the Designer; it must be done in code.

Code: The character used for the thousands separator is set by default to be a comma. This is the U.S. convention. You can change the thousands separator character with the set environment thousands separator function, se_thouseparator():

void se_thouseparator(thousep_ch)

UCHAR thousep_ch;        /* Character to use as thousands separator        */


Home Contents Previous Next