Currency (variable)

Storage size

8, 10 or 12 bytes

Keyable length

Up to 23

Static values

None

Function

Displays a value as a currency amount, with a currency symbol and thousands separator if specified in the data type’s format.

The Currency (variable) control type replaces the Currency (8-byte) control type available prior to release 5.5 of Dexterity. You can re-create an 8-byte currency value using the variable currency control type. Set the Storage size to 8 and the number of decimals to 0.

When you create a variable currency data type, you specify the keyable length and number of decimals. The keyable length is the total number of digits the field will have. Variable currency fields can have up to 23 digits. The Decimals field indicates the number of decimal places the field will have. Variable currency fields can have up to 15 decimal places. The storage size is calculated automatically, based on the keyable length. It can have the value 8, 10 or 12. It must be large enough to hold the number of digits specified in the keyable length.


Documentation Feedback