GetLanguage function

Official Content
This documentation is valid for:

Returns the Name (not the Description) of the currently active Language object.

Syntax

GetLanguage()

Example

The most common use is to set a variable of your own with the currently selected Language as in the following example. The variable &MyLanguage holds the value of the currently active Language. It is also shown on the screen as a Combo Box allowing the user to select any other languages available.

Note for Smart Devices applications: this function is available from GeneXus X Evolution 3 Upgrade 9 and higher. 

Event Start
    &MyLanguage = GetLanguage()
    ...
EndEvent

Scope

Objects    Language object

See also

SetLanguage function