Edit Prompt dialog box
Use this dialog box to set the parameters for the Prompt response type. These parameters include these keywords:
Keyword | Description |
---|---|
PROMPT | Use this keyword
to set the text to display in the prompt dialog.
Examples: PROMPT(Would you like to continue?) PROMPT(V(QUESTION)) PROMPT(STRINGS(sQuestion)) PROMPT(FORMAT(sDoYouWantToDelete%1,P(ID))) |
CAPTION | This optional
keyword overrides the default prompt dialog caption.
Examples: CAPTION(Warning!) CAPTION(STRINGS(sAnswerMyQuestion)) CAPTION(FORMAT(s%1WillBeDeleted,P(ID))) |
RESPONSE | This keyword sets
the prompt response options. These must use this syntax:
RESPONSE(OPTION[eventToGenerate]) OPTION can be any of these responses: OK | CANCEL | YES | NO | ABORT | RETRY | IGNORE The optional parameter eventToGenerate is the event that is generated if this response is selected by the user. Example: RESPONSE(OK(PromptOK),CANCEL()) This example displays a prompt dialog with “” and “” buttons, and the “” button generates the PromptOK event in the calling form. |
ICON | This optional
keyword sets the icon to display in the prompt dialog.
The parameter can be one of these icons: DEFAULT | ERROR | WARNING | QUESTION The parameter corresponds to one of the standard framework icons. Example: ICON(QUESTION) If omitted, the icon is set to DEFAULT (blue circle with a white "i" in the center). |
DEFAULTRESPONSE | This optional
keyword sets the default response button.
The parameter can be one of these responses: OK | CANCEL | YES | NO | ABORT | RETRY | IGNORE Example: DEFAULTRESPONSE(OK) The default response parameter must be one of the buttons specified in the RESPONSE keyword. |
CONDITION | This optional
keyword sets the conditional action expression used to determine if the prompt
event handler is run.
Parameter: Expression: Use a conditional action expression, the same type that is used for "Enable When", "Required When", and "Visible When" expressions. |
STOPONCONDITIONTRUE | This optional keyword indicates that the event chain should stop if the Prompt When condition is “True”. This is useful when the prompt is tied to standard framework events. |