General information
Category:
Forms & Form designer
My general advice is have a form level validation and check if the data entered is correct
eg
If thisform.txt1.value#correct
messagebox('Text1 value is incorrect!!')
Thisform.txt1.setfocus
return 0
endif
HTH
>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.
>
>I want to force the cursor to the object that needs to be fixed.
>
>How can I force the focus to a particular text object?
Previous
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