I don't understand the difference between shutting down the application normally and shutting down due to Windows logoff.
You can easily detect if the application is shutting down and handle that.
>I have an application that indicates whether a user is logged into it, and if a record is being modified. When the uses closes the application, it updates the online status. I discovered that if the user logs out of Windows, the VFP application is forced to close, and the online status remains unchanged. Is there a way for VFP to detect whether the user is logging out of Windows, or shutting down, so that it can perform its cleanup?
>
>---Michael Reynolds
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer