SET CURRENCY Command

Example   See Also

Defines the currency symbol and specifies its position in the display of numeric, currency, float, and double expressions.

Syntax

SET CURRENCY TO [cCurrencySymbol]

-or-

SET CURRENCY LEFT | RIGHT

Arguments

cCurrencySymbol

Specifies a character string representing the currency symbol; can be one to nine characters long. Issue SET CURRENCY TO without cCurrencySymbol to reset the currency symbol to the default dollar sign ($).

LEFT

(Default) Positions the currency symbol to the left of the currency value.

RIGHT

Positions the currency symbol to the right of the currency value.

Remarks

The currency symbol is displayed in output created with @ ... SAY and in text boxes created with @ ... GET when the $ code is included in the FUNCTION or PICTURE clause.

SET CURRENCY is scoped to the current data session.