MONEY-SYMBOL

You should no longer use this command because it may be discontinued in a future release. To use the newer SQR functionality, use ALTER-LOCALE.

Syntax

Use this syntax:

MONEY-SYMBOL new_symbol

Description

Redefines the currency symbol to be printed.

To change the symbol that prints on the report, use the MONEY-SYMBOL in the PROCEDURE section. When the MONEY-SYMBOL is set, that value is used until the next MONEY-SYMBOL command runs.

Use DOLLAR-SYMBOL and MONEY-SYMBOL together to configure SQR programs and the reports that they produce.

To indicate a nonedit character, surround its decimal value with angle brackets (<>). See the table under the DOLLAR-SYMBOL command for characters that cannot be used with MONEY-SYMBOL.

Note:

The MONEY-SYMBOL command has the same effect as the MONEY-SIGN and MONEY-SIGN-LOCATION=LEFT options of the ALTER- LOCALE command.

Parameters

Field or Control Description

new_symbol

Specifies a new, single character to replace the dollar sign ($) or DOLLAR-SYMBOL character on the printed report.

Example

For example:

begin-setup
 dollar-symbol £! Define £ as the 

   ! currency symbol
end-setup
begin-procedure! If #Amount=1234.56
...
money-symbol £
print #Amount () Edit £££,999.99   ! Prints as: £1,234.56
...
money-symbol $
print #Amount () Edit £££,999.99   ! Prints as: $1,234.56
...
money-symbol  
print #Amount () Edit £££,999.99   ! Prints as:  1,234.56
...
end-procedure

See the DOLLAR-SYMBOL and ALTER-LOCALE commands.