LimitRevisions (NotesDatabase - LotusScript®)

Read-write. The maximum number of entries allowed in the $Revisions field.

Note: This property is new with Release 6.

Defined in

NotesDatabase

Data type

Double

Syntax

To get: revisions# = notesDatabase .LimitRevisions

To set: notesDatabase .LimitRevisions = revisions#

Usage

This property corresponds to "Limit entries in $Revisions fields" in the database advanced properties of the UI.

This property must be an integer in the range 0 - 2147483647. When setting it:

  • Any fraction is truncated.
  • A value less than 0 raises lsERR_NOTES_NEGATIVE_VALUE (4631) "Value can not be negative."
  • A value greater than 2147483647 raises lsERR_NOTES_LONG_OVERFLOW (4673) "Value must be positive and less than 2147483648."

A value of 0 means no limit.

When $Revisions reaches the limit, a new entry results in deletion of the oldest entry.

The database must be open to use this property.

Example