LotusScript for Visual Basic Programmers - IBM Redbooks
LotusScript for Visual Basic Programmers - IBM Redbooks
LotusScript for Visual Basic Programmers - IBM Redbooks
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
NotesDatabase<br />
NotesDatabase is contained by NotesSession and NotesDbDirectory.<br />
It contains NotesACL, NotesAgent, NotesDocument,<br />
NotesDocumentCollection, and NotesView.<br />
Note In Notes Release 4.5, NotesDatabase will contain NotesForm and will<br />
be contained by NotesUIDatabase.<br />
We have many ways to access NotesDatabase:<br />
To access an existing database when you know its server and file name,<br />
use the New method of NotesDatabase, or the GetDatabase method of<br />
NotesSession.<br />
To access the database in which a script is currently running, without<br />
indicating a server or file name, use the CurrentDatabase property of<br />
NotesSession.<br />
To access an existing database when you know its server and replica<br />
ID, use the OpenByReplicaID method of NotesDatabase.<br />
To access an existing database when you know its server but not its file<br />
name, use the NotesDbDirectory class.<br />
To access the current user’s mail database use the OpenMail method of<br />
NotesDatabase.<br />
To open the default Web Navigator database, use the OpenURLDb<br />
method of NotesDatabase.<br />
To access the available Address books, use the AddressBooks property<br />
of NotesSession.<br />
To test <strong>for</strong> the existence of a database with a specific server and file<br />
name be<strong>for</strong>e accessing it, use one of these properties or methods of<br />
NotesDatabase: IsOpen, Open, OpenIfModified.<br />
To create a new database from an existing database, use one of these<br />
methods of NotesDatabase: CreateCopy, CreateFromTemplate,<br />
CreateReplica.<br />
To create a new database from scratch, use the Create method of<br />
NotesDatabase.<br />
To access a database when you have a NotesView, NotesDocument,<br />
NotesDocumentCollection, NotesACL, or NotesAgent from that<br />
database, use the appropriate Parent (or ParentDatabase) property.<br />
Chapter 3: <strong>LotusScript</strong> Notes Classes 51