rdoLocaleID Property

       

Returns or sets a value indicating the locale of the RDO library.

Syntax

object.rdoLocaleID [= value ]

The rdoLocaleID property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A constant or value that specifies a locale as described in Settings.

Settings

The settings for value are:

Constant Value Description
rdLocaleSystem 0 System
rdLocaleEnglish 1 English
rdLocaleFrench 2 French
rdLocaleGerman 3 German
rdLocaleItalian 4 Italian
rdLocaleJapanese 5 Japanese
rdLocaleSpanish 6 Spanish
rdLocaleChinese 7 Chinese
rdLocaleSimplifiedChinese 8 Simplified Chinese
rdLocaleKorean 9 Korean

Remarks

The locale determines which language is used when generating RDO error messages. The rdoLocaleID defaults to the Windows system locale when the rdoEngine is initialized.

You can override the current locale at any time by setting the rdoLocaleID to any of the supported values. If you use an unsupported value, a trappable error occurs.

When the rdoLocaleID property is set or changed, RDO loads the appropriate language dynamic-link library (DLL) to show error messages in the correct language.

If the specified language DLL is not present on the user's machine, RDO is set to rdLocaleEnglish, which does not require a separate DLL. When this happens, an informational message is placed in the rdoErrors collection indicating that RDO was unable to load the resource DLL for the specified locale.

When you distribute your application, be sure to include the appropriate language DLL.