SetOption (NotesDatabase - LotusScript®)
Sets the value of a database option.
Note: This method is new with Release 6.
Defined in
Syntax
Call notesDatabase .SetOption( optionName% , flag )
Parameters
optionName%
Integer. Constant. One of the following:
- DBOPT_LZCOMPRESSION (65) uses LZ1 compression for attachments
- DBOPT_MAINTAINLASTACCESSED (44) maintains LastAccessed property
- DBOPT_MOREFIELDS (54) allows more fields in database
- DBOPT_NOHEADLINEMONITORS (46) doesn't allow headline monitoring
- DBOPT_NOOVERWRITE (36) doesn't overwrite free space
- DBOPT_NORESPONSEINFO (38) doesn't support specialized response hierarchy
- DBOPT_NOTRANSACTIONLOGGING (45) disables transaction logging
- DBOPT_NOUNREAD (37) doesn't maintain unread marks
- DBOPT_OPTIMIZATION (41) enables document table bitmap optimization
- DBOPT_REPLICATEUNREADMARKSTOANY (71) replicates unread marks to
all serversNote: This option is new with Release 6.5.
- DBOPT_REPLICATEUNREADMARKSTOCLUSTER (70) replicates unread marks
to clustered servers onlyNote: This option is new with Release 6.5.
- DBOPT_SOFTDELETE (49) allows soft deletions
flag
Boolean.
- True to enable the option.
- False to disable the option.
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).