The closedatabase statement closes a specified database.


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.


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.

See Also


10.1NewNew in this version.