GetRtLangs - method of object Pm
The method allows to obtain the list of all national languages simultaneously supported by the running application, see PmRoot > Application > All used languages
. The list is especially useful for displaying the selection menu by the SelectionDialog
method. This way it is possible to create easily the selection menu allowing the users to swith languages in the application runtime.
GetRtLangs(sParams As String) As Variant
data = Pm.GetRtLangs(sParams)
|sParams||(String) Additional parameters for defining the format of output data.|"what:xx;" (optional)
- Defines the format of output data. For example "what:idlist;"
"what:idlist;" - Returns the list of identified national languages as a string (values separated by comma ',').
- Returns the list of national language identifiers represented by a 2-dimensional array that is suitable for displaying as a selection menu by using the SelectionDialog
. The rows represent individual national languages. The columns represent the identifier and localized language names.
The output list is represented by a string or by a 2-dimensional array.
Displaying the selection menu of all national languages. In the lang variable, there will be a string containing the identifier of selected national language or an empty string if no selection was completed (Cancel).
a = Pm.GetRtLangs("what:idtitlearray;")