<< Click to Display Table of Contents >> Navigation: Explain™ Control Language > Library Routines > Input and Output functions > Query() |
Ask the operator to answer a multiple-choice question. A dialog box with the choices is displayed and the script pauses until the operator makes a choice.
The number of choices in a query dialog box is limited by the area on the screen available for the dialog box. We do not recommend more than ten choices. |
REGULAR FUNCTION
Answer = Query(Question, Choice1, Choice2, ..., ChoiceN)
Question |
STRING |
The Question asked. |
ChoiceN |
STRING |
The label for the Nth Choice. |
Answer |
INDEX |
A code telling which choice was selected. The Answer number is zero-based. The first choice therefore returns zero, not one. |