Procedure ("Callback") called by DialogAsynchronous
when the user clicks one of the buttons in the dialog box.
This procedure is used to find out the value of the button that was clicked, and to run a specific process if necessary.
Remark: This procedure can be a local, global, internal or lambda procedure.
nButton is int = Random(2)
DialogAsynchronous("Click %1 to start the application.", ...
INTERNAL PROCEDURE MyProcedure_Dialog(nParam1 int)
IF nButton <> nParam1 THEN
<Selected answer>: Integer
Identifies the answer selected by the user.
The possible values have been defined in the creation wizard of DialogAsynchronous.
Remark: The different values corresponding to the different answers are automatically included as comments in the code editor when creating the dialog via the wizard.