Examples: IsOpen property (NotesDatabase - LotusScript®)

This script attempts to open TODO.NSF on the server Bombay. If the database is found, it is opened, and IsOpen returns True. If the database is not found (for example, because it doesn't exist), IsOpen returns False.

Dim db As New NotesDatabase( "Bombay", "todo.nsf" )
If db.IsOpen Then
  Print( "Succesfully opened " & db.Title )
  Print( "Unable to open database" )
End If