FileDatabaseCompact @Command (Formula Language)

Compacts the white space in a database, and at the same time, converts the old database to the new format.

Syntax

@Command( [FileDatabaseCompact] )

Usage

A database must be open, or selected on the workspace. Manager access is required to compact a database located on a server. No access level is required to compact a local database.

This command does not work on the Web.

Examples

This formula, when added as the code in an action button on a form in the TESTING.NSF database, compacts the TESTING.NSF database when you click the action button.
@Command([FileDatabaseCompact])

A message box displays indicating that the database is now being compacted. After you click the OK button, the status bar indicates when the database has been compacted by displaying the message, "Finished compacting testing."