I want to code a yes-no window when my program incurrs an error... But I
can't figure out how that's supposed to happen.

I can get the second window to appear that has a yes/no button... but as far
as I can figure, you have to exit the submit_click subroutine before being
able to take yes or no clicks.
Here is some pseudo code the demonstrates what I want to do...
Is it possible?

sub Submit_Click
{
        # Do some stuff here

        # Do some fancy stuff... 
        # Ooops, an error, ask a yes no question.
        
        while(#an error still exists or they say no#)
        {
                if(the answer was yes)
                {
                        # Do some stuff
                }
                else
                {       
                        # Do something different
                }

                # Do some fancy stuff... 
                # Ooops, an error, ask a yes no question.
        }

}

sub Yes_Click
{
        # True
        return 1;
}

sub No_Click
{
        # False
        return 0;
}


Reply via email to