Compact (NotesDatabase - LotusScript®)

Compacts a local database.

Defined in

NotesDatabase

Syntax

sizeDelta& = notesDatabase .Compact

Return value

sizeDelta&

Long. The difference in bytes between the size of the database before and after compacting.

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.

Example