Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






CompactWithOptions method

Compacts a local database allowing the submission of options.

Note This method is new with Release 6.

Defined in

NotesDatabase

Syntax

sizeDelta& = notesDatabase.CompactWithOptions( options$ )

sizeDelta& = notesDatabase.CompactWithOptions( options& [, spaceThreshold$ ] )

Parameters

options$

String. One or more command-line options supported by the Compact server task without the minus signs. Spaces are insignificant except that a space cannot be placed in the S option between the number and the final K, k, M, or m. Options are processed in their order of specification.

options&

Constant of type Long. One or more of the following constants. Combine constants by adding.

spaceThreshold$

String. Optional. The value of the S option (compact if specified percent or amount of unused space) without the S, for example, "10" for 10 percent, "10K" for 10 kilobytes, or "10M" for 10 megabytes.

Return value

sizeDelta&

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

Usage

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.

The options are those that you can use with the Compact server task. For more information, see "Compact options" in Administration Help.

CompactWithOptions does not support the e or E option.

Language cross-reference

compactWithOptions method in Java Database class

@Command([FileDatabaseCompact]) function in formula language

See examples

Examples: CompactWithOptions method




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009