LANGUAGE
Change the operating language.
Partial WebVue support - See the table with the list of modes below. Not supported modes return an unsuccessful code if used in this context.
Mode | Mnemonic | Syntax | WebVue support |
0 | GET | 1 | Yes |
1 | SET_L1 | 2 | No |
2 | SET_L2 | 2 | No |
3 | TOGGLE | 2 | No |
Syntax 1
IntVal = LANGUAGE(Mode);
Return type: INTEGER.
Execution
Mode |
Mnemonic |
Action |
0 |
GET |
Returns the language code currently used. |
|
|
Return: 1 for the primary language, 2 for the alternative language. |
Syntax 2
IntVal = LANGUAGE(Mode [, Refresh]);
Refresh |
Optional argument: 1 - Refresh all visible windows. |
Return type: INTEGER.
Execution
Mode |
Mnemonic |
Action |
1 |
SET_L1 |
Switch to primary language. |
2 |
SET_L2 |
Switch to alternative language. |
3 |
TOGGLE |
Toggle between languages. |
Return: 1 if successful, else 0. |
Example
SUB L2()
LANGUAGE("SET_L2", 1); 'switch language and refresh windows
END SUB
For a larger example, select the Example link above.