This function is deprecated use the amount_words_euro( ) instead and/or adapt the function format( ) to use the correct Euro symbols. The main use of this function is to facilitate the introduction of the Euro by swiftly adapting 'old' models; just add the function euro().
This function switches the behavior of the function amount_in_words( ) and the function format( ) (only for output languages of the euro zone (ITP run time setting)) to print either local currency or Euros.
euro ( use_euro Y/N )
The result of the function is of type BOOL; the previous state of the function amount_in_words( ).
This function requires one parameter:
amount_in_words( ) will use the Euro as currency. If this parameter is FALSE, the function amount_in_words( ) will use the local currency. For the function format( ) the behavior is similar. Any specified currency symbols will be replaced with the euro symbol. The single currency code will be replaced with the € and the multi-character code will be replaced with EUR. This function only works for ITP Output Language setting for languages of the Euro zone.
Note
This function does not convert the amount from local currencies to euros or vice versa, only the name of the currency changes.
Example
BOOL function_return
ASSIGN function_return := euro(TRUE)
#
@(amount_in_words (15.36))
#