Exec.Prompt
Description
- Prompts for a Yes/No answer and sets a PowerPro flag according to the result.
Syntax
Parameters
- target
- either:
- (integer) number of the flag to set
- Prompt will have 2 buttons: Yes & No.
- (string) a variable name
- Prompt will have 3 buttons: Yes, No & Cancel.
- msg
- (string) text to appear in the prompt dialog
Examples
- Exec.Prompt(14, "Do you like chocolate?")
Win.Debug(pproflag(14))- Shows a message box asking "Do you like chocolate?", with 2 buttons, Yes & No, then sets flag 14 to the result.
- local ans
Exec.Prompt("ans", "Do you like chocolate?")
Win.Debug(ans)- Shows a message box asking "Do you like chocolate?", with 3 buttons, Yes, No & Cancel, and sets variable ans to the result.