Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read events
Message
De
05/08/2003 01:55:00
 
 
À
04/08/2003 14:13:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00816040
Message ID:
00816725
Vues:
25
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform