Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Martin Krivka
  Where is Martin Krivka?
 
 Czech Republic
 Martin Krivka
 To: Ellen Solomon
  Where is Ellen Solomon?
 Bet Shemesh
 Israel
 Ellen Solomon
 Tags
Subject: RE: form stuck in READ EVENTS, not closing
Thread ID: 249275 Message ID: 249279 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Thursday, December 31, 2009 11:52:46 AM         
   


> Hi everyone!
>
> I have a form which should be closing, but isn't.
>
> The event it is in is a cmdButton.Click() which at the end calls thisform.release(). Release() does get called, but then the debugger shows it back at the form's Init() method on the READ EVENTS line. Then I click focus on the form (or probably give it any event), at which point it closes for real - destroying its local objects and calling Unload()
>
> Maybe there's a command to add in Release() so the form doesn't need one more event? CLEAR EVENTS is in there.
>
>
> Thanks,
> Ellen

Hi Ellen,
i think that better will be move the read events outside of form and use clear events in cmdButton.Click().
m.o=createobject("myForm")
m.o.show
read events  && cmdButton.Click clear events. So the next line will run after Click.
m.o=null


Martin

ENTIRE THREAD

form stuck in READ EVENTS, not closing Posted by Ellen Solomon @ 12/31/2009 11:12:28 AM
RE: form stuck in READ EVENTS, not closing Posted by Jun Tangunan @ 12/31/2009 11:35:59 AM
RE: form stuck in READ EVENTS, not closing Posted by Martin Krivka @ 12/31/2009 11:52:46 AM