LOTUSSCRIPT/COM/OLE CLASSES


Examples: AppendText method
This script adds two lines of text, separated by a carriage return, to the end of the Body item in a document.

Dim doc As NotesDocument
Dim rtitem As Variant
'...set value of doc...
Set rtitem = doc.GetFirstItem( "Body" )
If ( rtitem.Type = RICHTEXT ) Then
 Call rtitem.AppendText( "Add text to the rich text item" )
 Call rtitem.AddNewLine( 1 )
 Call rtitem.AppendText("Add more text to rich text item")
 Call doc.Save( False, True )
End If

See Also