Evaluate (NotesSession - LotusScript®)
Evaluates a Domino® formula.
Note: This method is new with Release 5.0.2b.
Note: This method is supported in COM only.
Defined in
Syntax
variant = notesSession .Evaluate( formula$ , doc )
Parameters
formula$
String. The formula.
doc
NotesDocument. The formula context. Cannot be null.
Return value
variant
The result of the evaluation. A scalar result is returned.
Usage
The formula takes the field from the specified document.
@Functions that affect the user interface do not work in the Evaluate method. These include: @Command, @DbManager, @DbName, @DbTitle, @DDEExecute, @DDEInitiate, @DDEPoke, @DDETerminate, @DialogBox, @PickList, @PostedCommand, @Prompt, and @ViewTitle.
You cannot change a document with the Evaluate method; you can only get a result. To change a document, write the result to the document with a method such as NotesDocument.ReplaceItemValue.