A third dialog procedure is the CONFIRM procedure. A CONFIRM procedure call causes processing to stop until the user responds to the dialog. In CONFIRM, we will include a question in our text because the procedure provides Yes and No button options. The application logic can then be conditioned on the user's response.
We can also use CONFIRM as a simple debugging tool to control the path the processing will take. Display the status of data or processing flow and then allow the operator to make a choice (Yes or No) that will influence what happens next. Execution of a CONFIRM procedure will also cause any pending MESSAGE procedure output values to be displayed before the CONFIRM procedure displays. Combined with MESSAGE and ERROR, creative use of CONFIRM can add to our elementary debugging/diagnostic toolkit.
CONFIRM has the following syntax:
BooleanValue := CONFIRM(String [, Default] [, Value1] ,...)
When we do not specify a value for Default, the system...