Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid is not fired
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00020085
Message ID:
00020153
Vues:
72
>>>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 :-)

It takes a while to get out of the mindset created by 2.x, where the methods were so limited that one often had to rely on Valid for all sorts of non-validation events. But I agree, Lostfocus is really where most post-control code belongs...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform