Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force Focus to object
Message
From
10/07/2003 15:52:05
 
 
To
10/07/2003 13:57:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00808943
Message ID:
00808991
Views:
9
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
Map
View

Click here to load this message in the networking platform