LOTUSSCRIPT/COM/OLE CLASSES
Examples: ReplaceItemValue method
1. This script changes the value of the EstimatedCost item to 122.
Dim doc As NotesDocument
Dim item As NotesItem
'...set value of doc...
Set item = doc.ReplaceItemValue( "EstimatedCost", 122 )
Call doc.Save( True, True )
2. This script achieves the same result using the extended class syntax.
Dim doc As NotesDocument
'...set value of doc...
doc.EstimatedCost = 122
Call doc.Save( True, True )
3. This script changes the value of the EstimatedCost item to "Too much," which also changes the type of the item from Number to Text.
Dim doc As NotesDocument
Dim item As NotesItem
'...set value of doc...
Set item = doc.ReplaceItemValue _
( "EstimatedCost", "Too much" )
Call doc.Save( True, True )
Véase también
ReplaceItemValue method
Glosario
¿Desea opinar sobre la
Ayuda
o sobre la
utilidad del producto
?
Ayuda sobre la Ayuda
Todo el contenido de la Ayuda
Glosario