Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid firing again AFTER lostfocus
Message
De
03/10/2003 10:04:48
 
 
À
28/09/2003 07:35:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00832991
Message ID:
00834782
Vues:
28
This message has been marked as the solution to the initial question of the thread.
Harry,

This is a known VFP "buglet" that has been around since at least Ver 5.0. It usually does no harm, but can sometimes be a problem.

Our workaround, that solves this an other problems is to add a "Hasfocus" property to your base controls. In the GotFocus of the control, set HasFocus = .T.

In the LostFocus event, set HasFocus = .F. Now at the top of your Valid code, test for HasFocus = .T. before executing the code. If the Valid code has already been run, HasFocus will be false, so your custom code will not execute twice.
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform