Skip to content

Thousands Entry Option

Obsolete

Refer to the Field Options property in the DataDictionary class.

See Also

Purpose

To display the thousands separator in numeric data-entry items.

Syntax

set field_options field
file.field
to dd_thousands

or

entry_item
file.field
{thousands}

What It Does

The thousands option causes numbers displayed in the item to show the thousands delimiter defined in the Configuration after every third digit of numbers greater than 999 (this defaults to the comma character in USA versions). When the cursor enters the item, this formatting disappears, but reappears when the cursor leaves the item.

Entry_Item account.balance {thousands}

In this example, values of Field balance in File account will be displayed with the thousands delimiter, as will entries to the item.

Notes

  • The delimiters occupy space in the item. Be aware that the size of an item may need to be increased to accommodate the additional characters.

  • If there is not enough room in the item to display the data and the delimiters, the delimiters will be omitted (data is favored).

  • Getting the value of an entry item will return the non-formatted version of the data. This is to ensure that any calculations that are performed on the data will proceed without error.

  • This entry option is not connected in any way with the embedded-comma print command option, although it performs a similar function. The two options may be used separately or together.