Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WHEN/VALID for a list box
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00001592
Message ID:
00001610
Views:
32
>I need the Valid event to fire just like the valid
>event
>for the text box as the person is leaving.
>Putting the
>valid code inside the When event does not take
>into account
>that the person might have changed something. So
>If they
>TAB out I need the Valid event to fire
>If they change the data I need it to fire. So far
>the
>Valid only fires if they look or change the data
>in the list.


Maybe you should try keeping all valididity checks in the valid
method, and then specifically call the valid method from the lost focus method. It's kind of a "hack" fix, but it should work.... That should fire whenever they tab out, click out, hit enter etc. You run the risk of firing the valid procedure twice in a lot of cases, but if your valid is small enough, it shouldn't matter.

Scot.
Previous
Reply
Map
View

Click here to load this message in the networking platform