Description

Localizes the object(s) designated by UIObject, which can be either a control or a control collection.

Return Type

None  

Syntax

object.Localize UIObject, [Module]

The Localize Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McCommandPage.
UIObjectRequired. A Variant value.

This can be a control exposing the IDispatch interface, or a collection of controls like UserControl.Controls.

ModuleOptional. A String value.

The context of the localization process, usually the module name.

Remarks

This is equivalent to calling McApplication.LocalizeControls (see example). This method translates all the property listed in Localizable using the dictionnaries located in Resources\LCID where LCID is the id of the current locale. If UIObject is a collection, it will be applied recursively on all the items of the collection.