>Hi Allen,
>
>In addition to what James and Ed suggested make the first line of your exit routine ON SHUTDOWN.
>
>>To All,
>>
>>I have a program exit routine that closes files, ends the event read, and terminates the application gracefully. How can I run that routine when someone clicks in the VFP desktop screen X button? Unless I stop reading events, FoxPro reports that it cannot quit.
One of first things which hit me very early when I jumped into this OOP world was the lack of ability to find out whether a Read Events was already issued or it wasn't. In FP there was the RdLevel() function, but what's for Read Events? Is there something elementary that I've overlooked?