Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read events
Message
From
05/08/2003 01:55:00
 
 
To
04/08/2003 14:13:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00816040
Message ID:
00816725
Views:
24
>Actually, that is where it will not exit the read events. I have an exit button on the form and I have clear events followed by a release thisform, but stepping through the code, when it hits the release thisform after the clear events, it rolls to my form.activate and stays at the read events and loops. Why would the clear events before the form release prevent this from occuring?

Kevin, the CLEAR EVENTS cannot be processed because you are calling it from a still active form, ie. your button click event, and so the form is still in scope. Now you will get unexpected behaviour.

What you need to do is just have the RELEASE THISFORM in the button click in order to exit the form and then in the calling program to the form you can test for exit values and perform the CLEAR EVENTS if necessary.

HTH
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform