Description

Add a named dialog to the collection.

Return Type

A McCommandDialog object.  

Syntax

object.Add (Name, [Source])

The Add Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McCommandDialogs.
NameRequired. A String value.

Name identifying this dialog.

SourceOptional. A Variant value.

If this variable is empty, then the method will attempt to create a new instance of the dialog 'Name'. Otherwise, it is assumed to be an IXMLDOMNode object which will be passed to McCommandDialog.Load.

Remarks

This method is called internally by Load to create McCommandDialog objects when scanning .dlg files.