Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error when closing app that is minimized
Message
 
 
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:
01389187
Vues:
58
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform