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)
- Specifies 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
. Each row represents one national language. The column represents 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).
VBScriptSelect and copy to clipboard
Dim a, lang
a = Pm.GetRtLangs("what:idtitlearray;")
lang = Pm.SelectionDialog(a, Pm.RtLang, "National language selection", 0)