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 )
Siehe auch
ReplaceItemValue method
Glossar
Ihre Kommentare zur
Hilfe
oder zur
Verwendbarkeit der Software
?
Hilfe zur Hilfe
Inhalt der gesamten Hilfe
Glossar