Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Give object focus
Message
From
03/06/2003 15:00:57
 
 
To
03/06/2003 14:51:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00795842
Message ID:
00795847
Views:
15
>Visual Foxpro 6.0
>
>I have a text object that is on a form (N,9,0)
>
>When the user inputs data, the LostFocus event checks to see if the input is acceptable. If it is, nothing happens. If it is not, it gives the user a message box telling them to re-input their data.
>
>How can I force the focus back to the text object?

hi William

put that code in the Validate() method and return .f. or .t. depending if the value is ok or not. that will force the user back to the object and to enter valid data.

hope this helps.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform