Function EN Version 2.00

@MainDatabase

Database Import System

Syntax

@MainDatabase;
@MainDatabase(NOTESPATH1);
@MainDatabase(NOTESPATH1;OPTIONS2);

Description

Without parameters, @MainDatabase the DBHANDLE for the current main database (AEF DATABASE Statement).

With parameters, @MainDatabase works like @OpenDB, but the opened database becomes the new main database.
The previous main database, if there was one, is closed.

For OPTIONS2,NOTESPATH1 and the general handling of @OpenDB see @OpenDB.

Example @MainDatabase;

MainDBH:=@MainDatabase;

Returns the DBHANDLE for the current main database.

Example @MainDatabase(NOTESPATH1);

MainDBH:=@MainDatabase("TEST.NSF");

Opens the database TEST.NSF as the main database.

Example @MainDatabase(NOTESPATH1;OPTIONS2);

MainDBH:=@MainDatabase("TEST.NSF";"P");

Opens the database TEST.NSF as the main database and deletes all document deletion stubs that are older than the deletion interval.

Note : This text was machine-translated and may contain inaccuracies.