Description

Creates a new application compliant database.

Return Type

A McDBDatabase object.   The newly created McDatabase or Nothing when a failure occurs.

Syntax

object.CreateDatabase ([sLogicalDatabaseName], [sPath], [pPicture])

The CreateDatabase Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataManager.
sLogicalDatabaseNameOptional. A String value. Database name property for the new databaase. If vbNullString is given, the name will be extracted from the sPath.
sPathOptional. A String value. Fully qualified file path to the folder that contains the local database files. If vbNullString is given, the path derived from the sLogicalDatabaseName and the default database path.
pPictureOptional. A Picture object. A picture representing the database to be created.

Remarks

sLogicalDatabaseName Database name property for the new databaase.
If vbNullString is given, the user will be prompted for a database path.
If the database path identifies a database that was used before, the old logical name will be used.

sPath Fully qualified file path to the folder that contains the database files.
If vbNullString is given, the name will be extracted from the path.

pPicture A picture representing the database to be created.
The picture will actually be stored on the McDatabase.RootNode.Icon.