../pvss.htm menu.gif basics.gif

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 the lang.dir file will be returned.

Synopsis

int getGlobalLangId(int langIdx);

Parameters

    Parameters

    Meaning

    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.

Errors

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.

IconExample

 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

UI, CTRL, DP

See also

    getLangIdx(), getNoOfLangs()

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved