Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect QueryUnload
Message
De
16/06/2005 07:51:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
16/06/2005 01:39:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01023802
Message ID:
01023876
Vues:
14
>I use Lostfocus to Validate data in a Textbox and would not wish to validate if the user clicks on the QueryUnload to close a window. How do I detect this in VFP6 SP5 ? Bear in QueryUnload fires after Lostfocus and Mdown() always returns -1 if the Click is done on the Close Button or if the mouse is outside the active window ?

You are better off, in my opinion, if you postpone all data validation until the user tries to save data. Then, you can give the user a list of conditions that are not fulfilled for saving the record.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform