LOTUSSCRIPT/COM/OLE CLASSES


SetOption method
Example

Sets the value of a database option.

Note This method is new with Release 6.

Defined in

NotesDatabase

Syntax

Call notesDatabase.SetOption( optionName% , flag )

Parameters

optionName%

flag Usage

Compact the database to ensure that the option takes effect. See Compact.

See GetOption for getting a database option.

Setting DBOPT_REPLICATEUNREADMARKSTOANY True also sets DBOPT_REPLICATEUNREADMARKSTOCLUSTER True. Setting DBOPT_REPLICATEUNREADMARKSTOCLUSTER True sets DBOPT_REPLICATEUNREADMARKSTOANY False. Setting both options False means unread marks are never replicated.

The database must be open. Otherwise this method raises lsERR_NOTES_DATABASE_NOTOPEN (4063).

Language cross-reference

setOption method in Java Database class

Example