Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clear Events isn't
Message
From
29/01/2013 11:25:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01564509
Message ID:
01564531
Views:
42
>>>>Hey Guys
>>>>
>>>>This is an issue I usually don't have a problem with, but here it is
>>>>
>>>>Application starts,
>>>>VFP desktop hidden
>>>>Main form fires off
>>>>Main form issues Clear Events and closes
>>>>
>>>>(Update)
>>>>After the Clear Events is issued and before the form closes, it goes through the GotFocus of a textbox (the only interactive object on the screen)
>>>>
>>>>VFP desktop doesn't Clear - get 'cannot close FoxPro' window
>>>>
>>>>Whatheheck?
>>>>
>>>>Dorris
>>>
>>>What do you have in the ON SHUTDOWN routine?
>>>
>>>Also, where do you have READ EVENTS code?
>>
>> I've never put anything in the ON SHUTDOWN even - so nothing
>>The Read Events is issued from the main program right after the DO FORM myform
>
>Try adding
>
>ON SHUTDOWN QUIT before Read Events
>
>and then
>
>ON SHUTDOWN after.

So, you're saying the code should look like
Do Form myForm
On ShutDown Quit
Read Events
On ShutDown
(finish cleanup here)
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform