closedatabase
DATABASE

The closedatabase statement closes a specified database.


Parameters

This statement has one parameter:

database – identifies the database you want to close. This should be only the name of the database, not including the path or the .pandb extension.


Description

This statement closes the specified database. As a result all windows for this database will also close.

 closedatabase "Transactions"

This statement is particularly useful for closing secret databases (see opensecret and makesecret). You can use closedatabase to close a secret database without first having to make it active.

Note: Closing the database does not stop the procedure. If the procedure has additional steps it will continue running. For example a procedure can close the current database and then open another one.

Warning: This statement will not automatically save the database it is closing. If you need to do that, use the saveandclose statement, like thi:

saveandclose "Transactions"

See Also


History

VersionStatusNotes
10.1NewNew in this version.