LOTUSSCRIPT/COM/OLE CLASSES


CreateFromTemplate method
Example

Creates a new database from an existing database.

Defined in

NotesDatabase

Syntax

Set notesDatabaseNew = notesDatabase.CreateFromTemplate( newServer$, newDbFile$, inheritFlag [, maxsize% ] )

Parameters

newServer$


newDbFile$
inheritFlag
maxsize%

Note This parameter is new with Release 5.


Return value

notesDatabaseNew


Usage

If a database with the specified file name already exists on the newServer$, an error is raised.

The new database has the design elements and documents of the existing database.

If "Database file is a master template" is set in the current database, the ACL of the new database takes the following entries:


If "Database file is a master template" is not set in the current database, the ACL of the current database is copied to the new database.

If "Database file is a master template" is set in the current database and the new database is on a server, that server is set as the administration server for the new database.

Language cross-reference

createFromTemplate method in Java Database class

@Command([FileNewDatabase]) function in formula language

Example
See Also