Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid is not fired
Message
From
12/02/1997 04:09:53
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00020085
Message ID:
00020144
Views:
57
>>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 :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform