Promotic
WikipediaLinkedInYoutubeTwitterFacebook

RtLanguage - property of object Pm

Description:
The language version of the runtime application. This property is obsolete (but functional) and is replaced by the Pm.RtLang property.
Syntax:
RtLanguage As Long
Calling:
n = Pm.RtLanguage
Values:
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
Note:
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 by writing into this property, then the change should be made in the PmRoot.onAppStartBegin event. When 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.
Example1:
Pm.Debug "Language=" & Pm.RtLanguage
Example2:
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.
Pm.RtLanguage = Pm.IniFileRead("config.ini", "runtime", "rtlanguage", 5, vbLong)
Navigation:
 
- 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