On Startup Database Method

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11 (Modified)


The On Startup Database Method is called once when you open a database.

This occurs in the following 4D environments:

4D in local mode

4D in remote mode (on the client side, after the connection has been accepted by 4D Server)

4D application compiled and merged with 4D Volume Desktop

Note: The On Startup Database Method is NOT invoked by 4D Server.

The On Startup Database Method is automatically invoked by 4D; unlike project methods, you cannot call this database method yourself by programming. You can however execute it from the Method editor. You can also use subroutines.

The On Startup Database Method is the perfect place to:

Initialize interprocess variables that you will use during the whole working session.

Start processes automatically when a database is opened.

Load Preferences or Settings saved for this purpose during the previous working session.

Prevent the opening of the database if a condition is not met (i.e., missing system resources) by explicitly calling QUIT 4D.

Perform any other actions that you want to be performed automatically each time a database is opened.

Example

See the example in the section On Exit Database Method.

See Also

Database Methods, Methods, On Exit Database Method, QUIT 4D.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next