COM - getLangIdx()
Returns the index of the specified language in the project.
Synopsis
HRESULT getLangIdx([in] VARIANT id, [out, retval] int
*asDpName);
Parameter
Parameter | Description |
---|---|
id | Language ID. The language identifier from the lang.dir file in <wincc_oa_path>/nls from the first column of the file, for example, id ="it_IT.iso88591"; (for Italian). The language identifier can also be an integer. In this case, you can find the language numbers of the different languages in the lang.nt file in <wincc_oa_path>/nls. |
asDpName | Index of the given language |
Description
This function returns the index of the specified language (either via the language name or as an integer) in the project. The index starts at 0, so index 2, for example, is returned for the language in the third position in the config file.
Example
Public Sub getLangIdx()
Debug.Print moComManager.getLangIdx("en_US.utf8")
End Sub
Assignment
COM