Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error when closing app that is minimized
Message
De
18/03/2009 13:50:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01389182
Message ID:
01389185
Vues:
47
>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?

You may always use TYPE() or VARTYPE() to check for the variable type/exisitng before saving.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform