Dim doc As NotesDocument
'...set value of doc...
Dim item As NotesItem
Set item = doc.GetFirstItem( "Subject" )
If ( item Is Nothing ) Then
Messagebox( "No Subject item on the document." )
Else
Messagebox( _
"The Subject item on the document has the value: " _
+ item.Text )
End If
Dim doc As NotesDocument
Dim item As NotesItem
Dim dateTime As New NotesDateTime( "" )
'...set value of doc...
Set item = doc.GetFirstItem( "DateComposed" )
' An item called DateComposed doesn't exist on the document
If ( item Is Nothing ) Then
dateTime.LSLocalTime = doc.Created
' an item called DateComposed exists
' on the document
Else
Set dateTime = item.DateTimeValue
End If
Dim doc As NotesDocument
Dim rtitem As NotesRichTextItem
'...set value of doc...
Set rtitem = doc.GetFirstItem( "Body" )
If ( rtitem.Type = RICHTEXT ) Then
Call rtitem.AppendText( "One line of text" )
Call rtitem.AddNewLine( 2 )
Call rtitem.AppendText( "Another line of text" )
Call doc.Save( False, True )
End If