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