Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WHEN/VALID for a list box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00001592
Message ID:
00001610
Vues:
33
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform