Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Combo validation problem
Using VFP 6/7/8 (I haven't checked with 9 yet) I am having a problem with values returned from a combo.valid() event. If a textbox.valid() returns .F., focus stays with the textbox and the original value is automatically restored. With combo.valid(), if .F. is returned the value stays at the new (invalid) value, and I have to restore the original value with some code like this.value=this.origvalue before leaving the validation code.
I've tried returning 1 and 0 instead of .T. and .F., but this doesn't seem to make any difference. Combo.style=2 (dropdown list).
Has anyone idea what may be happening here, and how to solve the problem? Any help would be appreciated.
Alan
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement