RtLanguage - property of object Pm

The language version of the runtime application. This property is obsolete (but functional) and is replaced by the Pm.RtLang property.
RtLanguage As Long
n = Pm.RtLanguage
Returns/sets a numeric identifier (LCID) of the language:
5 - (cs) Czech
27 - (sk) Slovak
9 - (en) English
10 - (es) Spanish
21 - (pl) Polish
7 - (de) German
25 - (ru) Russian
12 - (fr) French
14 - (hu) Hungarian
Property access for read and write. The preset value of this property is defined in the "Main language of runtime" configurator of the PmRoot object.

The value of this property influences selecting the text by Macro expression $.text.

If the language version is changed in the runtime mode by writing into this property, then the change should be made in the PmRoot.onAppStartBegin event. If it is written into the property later while starting or running the application, then some parts of PROMOTIC needn't reflect the change of the language. For example the panel that is already open will not refresh the displayed texts - it is necessary to reopen it. The font palette is automatically created again when the language is changed so that the panel uses the new font in the next opening.

This property is not functional for Web panels.
VBScriptSelect and copy to clipboard

Pm.Debug "Language=" & Pm.RtLanguage
The command in the PmRoot.onAppStartBegin event that reads the language in the runtime from the config.ini file, runtime section, rtlanguage item and then the read value writes into RtLanguage.
VBScriptSelect and copy to clipboard

Pm.RtLanguage = Pm.IniFileRead("config.ini", "runtime", "rtlanguage", 5, 3)  '3=vbLong, 8=vbString, ...
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

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