MessageManager.AddLanguage Method

The AddLanguage method adds a new message set to the MessageManager.

Syntax

MessageManager.AddLanguage(MessageSet, LocaleID)

Parameters

MessageSet
A string supplied as the name for the message set to add to the MessageManager.
LocaleID
A number that uniquely identifies the locale to associate with the added message set. For a list of possible values for this parameter, see Hexadecimal Locale Identifiers.

Remarks

The AddLanguage method adds a message set to the MessageManager, and associates that message set with a locale. In subsequent calls to MessageManager object methods, the caller needs to identify the message set name, not the locale.

Any number of message sets can be associated with a single locale.

Example

The following example adds a message set called "usa" to the MessageManager, and uses the MessageManager’s DefaultLanguage property to make the added message set the default message set for the site:

Call MSCSMessageManager.AddLanguage("usa", &H0409)
MessageManager.defaultLanguage = "usa"

Related Topics


© 1997-1998 Microsoft Corporation. All rights reserved.