LotusScript for Visual Basic Programmers - IBM Redbooks
LotusScript for Visual Basic Programmers - IBM Redbooks
LotusScript for Visual Basic Programmers - IBM Redbooks
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Property Description<br />
EmbeddedObjects Read-Write. All the embedded objects, object links,<br />
and file attachments contained in a rich text item.<br />
Note When you use the EmbedObject method of NotesRichTextItem in<br />
<strong>Visual</strong> <strong>Basic</strong> using Notes classes through OLE Automation, the argument<br />
type of the method is type number rather than type constant used in<br />
<strong>LotusScript</strong>.<br />
Type Constant Type Number<br />
EMBED_ATTACHMENT 1454<br />
EMBED_OBJECT 1453<br />
EMBED_OBJECTLINK 1452<br />
Tip If <strong>Visual</strong> <strong>Basic</strong> cannot recognize a type constant, you can always use<br />
Message Cstr(TypeConstant) in <strong>LotusScript</strong> to find out the type number.<br />
NotesSession<br />
The NotesSession class represents the Notes environment of the current<br />
script, providing access to environment variables, address books,<br />
in<strong>for</strong>mation about the current user, and in<strong>for</strong>mation about the current<br />
Notes plat<strong>for</strong>m and release number.<br />
It contains NotesAgent, NotesDatabase, NotesDbDirectory,<br />
NotesDateTime, NotesLog, and NotesNewsletter. In Notes Release 4.5, it<br />
will contain the NotesInternational and NotesDateRange classes.<br />
Method Description<br />
New Creates a new NotesSession object.<br />
Close Closes a session. Any objects contained within the<br />
session become invalid once you close it.<br />
CreateDateRange Given a NotesDateRange object which represents<br />
the date range you want.<br />
CreateDateTime Given a string that represents the date and time<br />
you want, creates a new NotesDateTime object<br />
that represents that date and time. When used<br />
with OLE automation, this method allows you to<br />
create a NotesDateTime object without using New.<br />
CreateLog Creates a new NotesLog object with the name you<br />
specify. When used with OLE automation, this<br />
method allows you to create a NotesLog object<br />
without using New.<br />
Continued<br />
Chapter 3: <strong>LotusScript</strong> Notes Classes 73