LOTUSSCRIPT/COM/OLE CLASSES


Compact method
Example

Compacts a local database.

Defined in

NotesDatabase

Syntax

sizeDelta& = notesDatabase.Compact

Return value

sizeDelta&


Usage

For more capabilities, see CompactWithOptions.

This method must be run where the database is located, or it will produce an error. If the database is on the server, or accessible to that server via a mapped drive, the method must be run from the server. If the database resides on the Notes client, the method must be run in the Notes client. The method can not be run on one server to compact databases on another server.

A script cannot compact the current database (the database in which the script is running) or the desktop.dsk file.

Language cross-reference

compact method in Java Database class

@Command([FileDatabaseCompact]) function in formula language

Example