MessageManager.AddLanguage

Ee824867.c++_on(en-US,CS.10).gifEe824867.vb_off(en-US,CS.10).gif

Use this method to add a message set to the MessageManager, and associate 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.

Definition

Sub AddLanguage(bstrLanguage As String,Locale As Long)

Parameters

bstrLanguage

A String that contains the name for the message set to add to the MessageManager object.

Locale

A Long that uniquely identifies the locale to associate with the added message set.

Return Values

None.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

' oMessageManager is a Commerce.MessageManager object
oMessageManager.AddLanguage("usa", 1033)

See Also

MessageManager Object

MessageManager.DefaultLanguage

DataFunctions.Locale

MessageManager.GetMessage


All rights reserved.