Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent Textbox Valid from Firing if Mouse is clicked
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00676263
Message ID:
00676279
Views:
22
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform