Qstbox
Qstbox
displays a popup windows with a message including a question. The user clicks on Yes or No to answer to the question.
This function is only usable in Classic pages related code and is deprecated for code running in version 7 mode.
Qstbox MESSAGE_LIST Using ANSWERQstbox MESSAGE_LIST Titled TITLE Using ANSWERQstbox MESSAGE_LIST Titled TITLE Using ANSWER Sleep TIMEQstbox MESSAGE_LIST Using ANSWER Sleep TIME
MESSAGE_LIST
is a list of string expressions separated by commas. The content of each string is displayed on a different line.TITLE
is a string expression that contains the title of the popup that appears.TIME
is an integer expression that gives a time-out before the popup closes automatically. If not given, the popup closes only when a click is done on a possible answer button.ANSWER
is an variable that gives the answer to the question. The possible values are 1 (Yes) or 2 (No). No default value can be given before calling this function. If a time-out occurs, 2 is sent back.# If the computation returns a small value without error, ask for continuingLocal Integer CONTCall COMPUTATION(FORMULA,RESULT, ERROR)If ERROR=0 and RESULT<10Qstbox "The following formula has been computed",FORMULA,&"with a small result (equal to "+num$(RESULT)+")",&"Do you wish to continue the process?"& Titled "Do you really want to continue?" Using CONT Sleep 60If CONT= 1Call NEXT_COMPUTATIONEndifEndif
Qstbox
behaves as Infbox
, but the popup looks different ("?" symbol on a blue bar).
This instruction should be used only to display a message followed by a yes/no question.
Endbox, Errbox, Infbox, Selbox, Wrnbox