I've added a check box to a dialog screen (with Net express cobol as backend).
Question is, when a user clicks on the checkbox, I want the dialog system to immediately ask him if he really want to do this, as it will delete a record (in the Cobol code).
How do I code dialog to do this?  Do I have to wait until a button is pushed (ie Save) and then interrogate the checkbox?   I could find no examples in any of the doc for this.
Thanks,
Fran 
#checkboxDialogSystemNetExpressThe default event for a checkbox control is the BUTTON-SELECTED event.
If you right click on the checkbox and select Dialog you can add a command like the following:
 BUTTON-SELECTED
     INVOKE-MESSAGE-BOX MBOX1 $NULL $REGISTER
Where MBOX1 is a messagebox that I have defined with the Do you Really want to Delete? message and Yes or No buttons.
As soon as the checkbox is clicked the messagebox will be displayed.
Look in the Dialog System documentation for more information on invoke-message-box and the checkbox control.
Thanks.
                
     
                                    
            I've added a check box to a dialog screen (with Net express cobol as backend).
Question is, when a user clicks on the checkbox, I want the dialog system to immediately ask him if he really want to do this, as it will delete a record (in the Cobol code).
How do I code dialog to do this?  Do I have to wait until a button is pushed (ie Save) and then interrogate the checkbox?   I could find no examples in any of the doc for this.
Thanks,
Fran 
#checkboxDialogSystemNetExpressThanks.  I finally figured this out last night!