Forever humble here...
I read (and appreciated) your responses. I now understand that I only need to read and clear events ONCE in a program. Okay - got that.
I even went and read all the stuff I could find in the help files...
But I haven't been ablt to answer my question.
Here is what I have
main calling prg looks like this:
goagain = .t.
do while goagain
do form main1 with goagain
read events
endif
Form main1 is displayed properly
Data is entered into form and a command button clicked. In the Click Event of the command button is some code that checks the data (maybe shouldn't be here but it is until you tell me a better place). An error condition arises and the messagebox is displayed just fine.
After the control returns from the messagebox I want to stop execution of the code in that click event and return to the calling prg, loop around and call the main1 form again but it continues execution of the code in the click event. I have tried ThisForm.release() and a bunch of other dumb stuff that hasn't worked.
Can you pleas set me back on the path again. This is soooo frustrating!!!
I read (and appreciated) your responses. I now understand that I only need to read and clear events ONCE in a program. Okay - got that.
I even went and read all the stuff I could find in the help files...
But I haven't been ablt to answer my question.
Here is what I have
main calling prg looks like this:
goagain = .t.
do while goagain
do form main1 with goagain
read events
endif
Form main1 is displayed properly
Data is entered into form and a command button clicked. In the Click Event of the command button is some code that checks the data (maybe shouldn't be here but it is until you tell me a better place). An error condition arises and the messagebox is displayed just fine.
After the control returns from the messagebox I want to stop execution of the code in that click event and return to the calling prg, loop around and call the main1 form again but it continues execution of the code in the click event. I have tried ThisForm.release() and a bunch of other dumb stuff that hasn't worked.
Can you pleas set me back on the path again. This is soooo frustrating!!!