LOTUSSCRIPT/COM/OLE CLASSES
Given a name, returns the first item of the specified name belonging to the document.
Defined in
NotesDocument
Syntax
Set notesItem = notesDocument.GetFirstItem( name$ )
Parameters
name$
notesItem
A document may contain more than one item of the same name. To access other than the first item, use the Items property of NotesDocument. This code gets all items named "Item33":
Using this method to get rich text items
The compiler raises an error if you try to set the return value of GetFirstItem equal to a NotesRichTextItem object. This is because a NotesItem is not necessarily a NotesRichTextItem, and the compiler has no way of knowing whether the name$ you specify actually corresponds to a rich text item. For example:
getFirstItem method in Java Document class
Example See Also