@Prompt by using function Evaluate

I am trying to evaluate a formula from LotusScript using “Evaluate”. The code executes fine, but no messagebox is shown…

Basically like this:

Reviewer = Evaluate({@Prompt([OKCANCELCOMBO]; “Select a Reviewer”; “Select a reviewer”; “CARL”; “CARL”:“ROGER”:“MARK”)}, doc)

Is there a better way of getting a messagebox with a combobox in it? I need to be able to process the selected item in my LS agent.

Subject: @Prompt by using function Evaluate

From the help files :

The following @functions, which affect the user interface, do not work within an Evaluate statement: @Command, @DbManager, @DbName, @DbTitle, @DDEExecute, @DDEInitiate, @DDEPoke, @DDETerminate, @DialogBox, @PickList, @PostedCommand, @Prompt, and @ViewTitle.

When you’r working in LotusScript, you can use the prompt method of the notesUIWorkspace class

Syntax

variant = notesUIWorkspace.Prompt( type%, title$, prompt$ [, default ] [, values ] )

Subject: @Prompt by using function Evaluate

Why don’t you use the methods in Lotusscript instead? NotesUIWorkspace has a PROMPT method, with among others, have a type of “PROMPT_OKCANCELCOMBO”. Shouldn’t this cover your needs?

Regards,

Rune Carlsen

Founder Dominozone

http://www.dominozone.net