Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent Textbox Valid from Firing if Mouse is clicked
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00676263
Message ID:
00676279
Vues:
23
Try
IF EMPTY(THIS.VALUE) AND NOT MDOWN()
    RETURN 5
ENDIF
>I have a textbox that has a valid event that looks like this:
>
>IF EMPTY(THIS.VALUE)
> RETURN 5
>ENDIF
>
>How do I prevent this from firing if the user clicks on another field with the mouse? In other words, if the textbox is left blank and the user hits enter, move the focus ahead. If the textbox is left blank and the user clicks on another field, ignore the valid? Also, CONFIRM is SET ON to force the user to TAB or ENTER to leave the textbox.
>
>Thanks,
>
>Mark
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform