LOTUSSCRIPT/COM/OLE CLASSES


Examples: Creating an item and assigning values
1. This example uses the New method of the NotesItem class to add a new item named ModifiedBy to each document in a database and to give it the value of the user name for the Notes session.
2. This example uses the AppendItemValue method of the NotesDocument class to add a new item named ModifiedBy to each document in a database and give it the value of the user name for the Notes session.
3. This example uses the Values property of the NotesItem class to change the value of the item named ModifiedBy in each document in a database. Loops are used to access all values of all items with the name ModifiedBy.
4. This example uses the ReplaceItemValue method of the NotesDocument class to change the value of the item named ModifiedBy in each document in a database. The result in each document is a single item named ModifiedBy with a single value.
See Also