Description

Adds a new McDBType definition to this collection.

Return Type

A McDBType object.  

McDBType

Syntax

object.Add (Name, [Icon])

The Add Method syntax has these parts:

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

The name of the new McDBType

IconOptional. An Object object.

icon representing the new McDBType. When passed, this icon will always be used for the mcdbSmallIcon icon.

Remarks

The new McDBType is NOT stored until an McDBAttribuetType defintion is added to its McDBType.Attributes collection.

Exceptions

Error Value Description
E_INVALIDARG &H80070057 An invalid Name was specified. All McDBType definitions must have a non-empty Name. Also the Name “McDatabase” is reserved for use by the Database Engine, and so may not be used.
E_ACCESSDENIED &H80070005 The McDBDatabase.LoggedUser does not have McDBType Administration privileges (McDBRightsOwner.ObjectTypeAdminRight).
E_UNEXPECTED &H8001FFFF A framework error occurred while adding the new McDBType.