Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forcing Combo To Fire Valid When Losing Focus
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Forcing Combo To Fire Valid When Losing Focus
Divers
Thread ID:
00418762
Message ID:
00418762
Vues:
45
After programming with VFP since 1995, I have finaly decided to solve the problem of a combo box not firing the valid event when it loses focus. I have tested the following and it appears to work fine. Before I add this to my combo baseclass anyone have any comments?
Combo LostFocus:
IF THIS.VALID() = .F.
	THIS.SETFOCUS()
	NODEFAULT
ENDIF

Combo Valid:
IF oDevice.ValidateField(device.id,'fk_vendor',this.value) = .F.
	WAIT WINDOW "Invalid data" NOWAIT
	RETURN .F.
ENDIF
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform