Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why Clear Events is ignored?
Message
 
 
À
17/09/2004 14:19:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00943400
Message ID:
00943611
Vues:
16
I guess I had it wrong. I loop through each active form _after_ Clear Events is called. Maybe this is why my Clear Events does not fire because the form is modal. I am just surprised that I have not had this problem before.
Thank you very much for your help.

>If there is a modal form active, it has exclusive focus until it is released. I have an on shutdown procedure that when executed, it loops through each active form explicitly releasing each one, then it executes clear events and finishes with any additional cleanup on exit.
>
>
>
>>In the start up procedure of my program I have "On Shutdown Clear Events". Then after the Read Events I have a clean up code that closes all formas. But to get to the clean up code "Clear Events" has to be executed. But the Clear Event is ignored.
>>
>>>I don't think that a modal form is in the event loop and will remain active until it is released. Try thisform.release or loop through each active forms and specifically release them. Do you use an ON SHUTDOWN procedure to release forms and do required cleanup before the application closes?
>>>
>>>>I am trying to figure out why my application (.EXE) is ignoring Clear Events statement in one form. Basically I have a modal form that has a code in a button click() method: a loop of processing the some data. I put a line:
>>>>
>>>>
Clear Events
>>>>
>>>>in the middle of the procedure but the program at run time simply ignores it. Any other place Clear Events would make the program go to the first line after Read Events, as it supposed to.
>>>>
>>>>Any idea or suggestions?
>>>>
>>>>Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform