Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when closing app that is minimized
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01389182
Message ID:
01389187
Views:
56
When application is minimized, _Screen.WindowState = 1

>I use the following code in all my programs:
>"ON SHUTDOWN DO EXITAPP"
>In the EXITAPP.PRG, I open a user database and save settings when the program closes, such as _screen.top, _screen.left and other data like that so I can use it when the program starts up again. All works fine, but I have one user that informed me that if he minimizes my VFP program and then right-clicks on it in the taskbar and clicks CLOSE, the program maximizes and then generates the following error message:
>"Numeric overflow. Data was lost." If I click on [Ignore], it tells me the variables that I am saving in my EXITAPP are not found. Is there a solution to this problem or a work around, or a way to test if the program is trying to be shut down this way that I could tell my program to bypass the saving of these variables that are not available at this point?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform