getGlobalLangId()
Returns the sequence number of a project language from the
lang.dir file <wincc_oa_path>/nls. This means that you pass an index of a project language (from
the config file) as a parameter and the sequence number of this language from
thelang.dir file will be returned.
Synopsis
int getGlobalLangId(int langIdx);
Parameters
| Parameter | Description |
|---|---|
| langIdx | Language index of a project language from the config file. Index starts with 0. |
Return value
If successful, the function returns the language number or in the event of an error, -1.
Error
If the required language is not available or an argument error.
Description
Returns the sequence number of a project language from the
lang.dir file in <wincc_oa_path>/nls.
Example
Returns the sequence number of the project language with the index 1 from the
lang.dir file in <wincc_oa_path>/nls. The passed parameter is the index
of a project language from the config file.
main()
{
int result1;
int id1 = 1;
result1 = getGlobalLangId(id1);
DebugN("The sequence number of the project language with the
index 1 in the lang.dir file is: ",
result1);
}
Assignment
Multi-language capability
Availability
CTRL