General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only