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 ',').
"what:idtitlearray;" - 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.
Return Values:
The output list is represented by a string or by a 2-dimensional array.
This method is not functional yet for Web panels.
See also:
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)
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
- Pm
- Abs
- Cos
- E
- Exp
- GetRtLangs
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice