P. 1
SQR-guide

SQR-guide

4.5

|Views: 6,559|Likes:
Published by api-3801512

More info:

Published by: api-3801512 on Oct 17, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

09/23/2014

pdf

text

original

You can switch from one locale to another any number of times during
program execution. This technique is useful for writing reports that use
multiple currencies, or reports that have different sections for different
locales.

To switch to another locale, use the ALTER-LOCALE command. For
example, to switch to the Spanish locale:

alter-locale locale = ’Spanish’

From this point in the program, the locale will be Spanish.

Consider this example:

begin-procedure print_data_in_spanish
! Save the current locale
let $old_locale = $sqr-locale
! Change the locale to "Spanish"
alter-locale locale = ’Spanish’
! Print the data
do print_data
! restore the locale to the previous setting
alter-locale locale = $old_locale
end-procedure

In this example, the locale is switched to Spanish and later restored to the
previous locale before it was switched. To do that, the locale setting
before it is changed is read in the reserved variable $sqr-locale and stored
in $old_locale. The value of $old_locale is then used in the ALTER-LOCALE
command at the end of the procedure.

National Language Support

SQR 4.3

154

SQR User’s Guide

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->