Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close the VFP desktop?
Message
 
To
12/12/1998 15:06:57
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00166481
Message ID:
00167155
Views:
24
>>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?

Hi Dragan,

Only one READ EVENTS can active at a time and subsequent READ EVENTS have no effect. So, if you're not sure just issue READ EVENTS. HTH
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform