Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid is not fired
Message
De
12/02/1997 04:09:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00020085
Message ID:
00020144
Vues:
61
>>I have a listbox where the definition is like this
>>
>>BoundColumn=2
>>ControlSource=wgtset.struc_id
>>RowSource=select name,struc_id from struc where template=1 order by 1 into cursor temp
>>RowSourceType=3
>>
>>When I create enter my form when creating a new record, the listbox is blank because wgtset.struc_id does not contains any value. If I press TAB to move to my next field, the Valid() event of the listbox is not fired. Isn't the Valid() event suppose to be fired whenever we exist the field?
>
>My limited VFP experience so far has been that most Valid events only fire if data has changed.

IN VFP 3 the valid would fire all the time.

If it's now true that vlid only fires when data has changed that is a GREAT improvement.


It does mean that code that should execute when you tab out of the control belongs in the LostFocus() method. But then _really_ it always did, just you could get away with muddy thinking about the partitioning of hte responsibilities of the methods :-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform