Description

Ensures a particular McDBType exist in a destination database.

Return Type

A McDBType object.   A McDBType with reference in pdatabaseDest that has pdbtypeSource.Name or sDBTypeName regardless whether any database modification was made.
Failure Returns Nothing.

Failure conditions:
* Invalid Arguments.
* No access to create McDBTypes in pdbDest.
* A supplied sDBTypeName does Not exists in the Journal Database.

Syntax

object.MakeTypeExist (pdbDest, [pdbtypeSource], [sDBTypeName])

The MakeTypeExist Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataManager.
pdbDestRequired. A McDBDatabase object.
pdbtypeSourceOptional. A McDBType object. optional McDBType which identifies the set of Attributes to be created in pdatabaseDest
sDBTypeNameOptional. A String value. optional DBTypeName which identifies the set of Attributes from the Journal or 'Template' McDatabase to be created in pdatabaseDest.

Remarks

sDBTypeName is ignored when both optional parameters are specified. When a McDBType exists in pdbDest with the same name prior to this call, the unmodified McDBType is returned. An existing McDBType is never modified. When sDBTypeName is used, the McDBType will be copied from the Identities Journal. If the named McDBType does not exist in the Journal, a McDBDatabase named 'Template' will be used to provide a source McDBType. Finally, when no source McDBType can be found, a unconfigured McDBType will created with a name specified by sDBTypeName.