Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open forms when 'clear events'
Message
From
17/08/1998 13:02:35
 
 
To
17/08/1998 11:58:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00127449
Message ID:
00127473
Views:
25
Hi guys

>>Can I tell if my user is trying to exit while a form is open? I use 'read events' in the startup program and launch a menu. The user can open forms and then select 'File/eXit' and terminate potentially causeing a problem releasing files. Any ideas will be greatly appreciated.
>>Thanks again
>>-Swen
>
>Your code can always check for form exising and release forms if necessary:
>For n=1 to _screen.formcount
>_screen.forms(n).release
>Endfor

Good 'ol CLEAR WINDOWS works pretty well too...also avoids those problems where a toolbar is in the Forms collection and toolbars don't have a Release.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform