LOTUSSCRIPT/COM/OLE CLASSES


CreateDatabase method
Example

Creates a new database, using the server and file name that you specify.

Note This method is new with Release 5.0.2b.

Note This method is supported in COM only. For LotusScript, use Create in NotesDatabase.

Defined in

NotesDbDirectory

Syntax

Set notesDatabase = notesDbDirectory.CreateDatabase( dbfile$ [ , open ] )

Parameters

dbfile$


open
Return value

notesDatabase


Usage

If you do not open the database, only a subset of its properties is available. See IsOpen in NotesDatabase.

This method raises ERR_NOTES_ERROR2 (error 0FA5) if the database already exists.

Because the new database is not based on a template, it's blank and does not contain any forms or views.

Language cross-reference

createDatabase method in Java DbDirectory class

Example