Previous Next

CURRENT-LANGUAGE statement
Sets the CURRENT-LANGUAGE variable for the current ABL session.
Note:
Syntax 
 
CURRENT-LANGUAGE = string-expression
string-expression
A character‑string expression that specifies a language name or a comma‑separated list of language names.
Example 
This example procedure uses the CURRENT-LANGUAGE function to find the current language, prompts the user to choose a new language, and then uses the CURRENT-LANGUAGE statement to reset and display the name of the new current language:
 
DEFINE VARIABLE cur-lang AS CHARACTER FORMAT "x(10)" VIEW-AS RADIO-SET 
    RADIO-BUTTONS czech,   "Czech",
                  danish,  "Danish",
                  dutch,   "Dutch",
                  english, "English",
                  french,  "French",
                  german,  "German",
                  hungar,  "Hungarian",
                  italian, "Italian",
                  norweg,  "Norwegian",
                  polish,  "Polish",
                  portug,  "Portuguese",
                  swedish, "Swedish".
 
cur-lang = IF CURRENT-LANGUAGE = "?" THEN "English" ELSE CURRENT-LANGUAGE.
 
UPDATE cur-lang NO-LABELS.
 
CURRENT-LANGUAGE = cur-lang.
MESSAGE "New language is" CURRENT-LANGUAGE.
Notes 
*
*
*
*
*
*
See also 
COMPILE statement, CURRENT-LANGUAGE statement

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.