RC-WinTrans Object Model Help |
LanguageTool.IsKnownLanguageCode |
Returns whether the language code is known by RC-WinTrans.
Syntax: |
IsKnownLanguageCode(LanguageCode As String) As Boolean |
Return: | Boolean |
Parameters: |
LanguageCode Language code for which to check.
|
Example: | Dim Tool As LanguageTool Dim LangCode As String Dim LangID As Long Dim PrimLangID As String Dim SecLangID As String Set Tool = Application.Tools.LanguageTool LangCode = "en-us" If (Tool.IsKnownLanguageCode(LangCode)) Then LangID = Tool.GetLanguageID(LangCode) PrimLangID = Tool.GetPrimaryLanguageID(LangID) SecLangID = Tool.GetSecondaryLanguageID(LangID) End If |
See also: