LOTUSSCRIPT/COM/OLE CLASSES


Examples: AppendItemValue method
1. This script adds two new items to a document: a number item called EstimatedCost with the value 89, and a text item called Region with the value "Pacific Rim."
2. This script achieves the same result using the extended class syntax. The difference is that if an item with the name EstimatedCost or Region already exists in the document, its value is replaced by the new value.
3. This script creates a new text item called Contacts in a document, and adds three new values to it.
4. This script achieves the same result using the extended class syntax. The difference is that if an item called Contacts already exists in the document, its value is replaced with the values Chrissa Ehrhardt, Allegra Pisarro, and Esteban Garcia.
5. This script creates a new time-date item called DueDate in a document. It has the value 08/15/95 12:00:00 AM.
6. This script achieves the same result using the extended class syntax. If an item with the name DueDate already exists on the document, its value is replaced with 08/15/95 12:00:00 AM.
See Also