IsOpen (NotesDatabase - LotusScript®)

Read-only. Indicates whether a database is open.

Defined in

NotesDatabase

Data type

Boolean

Syntax

To get: flag = notesDatabase .IsOpen

Legal values

  • True indicates that the database is open.
  • False indicates that the database is not open.

Usage

A database must be open to use the NotesDatabase properties except the following: DelayUpdates, DesignTemplateName, FileName, FilePath, IsOpen, IsPrivateAddressBook, IsPublicAddressBook, Parent, ReplicaID, Server, Size, SizeQuota, SizeWarning, TemplateName, and Title.

The following do not open a database: NotesDbDirectory.GetFirstDatabase, NotesDbDirectory.GetNextDatabase, and NotesSession.AddressBooks. You must explicitly call NotesDatabase.Open.

If a NotesDatabase object must be open but is not, the following error occurs: "Database has not been opened yet." This error does not occur when the NotesDatabase is created, but later when the attempt to use it occurs. Possible causes of the error are: the database as specified does not exist; the user does not have permission to access the database; the database is damaged.

Example