Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force Focus to object
Message
 
To
10/07/2003 14:26:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00808943
Message ID:
00808970
Views:
25
Try:
IF irmpok = .f.
thisform.txtirpm1.setfocus()
nodefault
ENDIF

Other approach may use textbox.valid, but instead of setfocus you will need to return numeric value(+/-) specifies the number of controls the focus advances (with +) or moves back (-).

>That's what I thought, but it is not working. Here is the code I have in the LostFocus area:
>
> IF irmpok = .f.
> thisform.txtirpm1.setfocus()
> ENDIF
>
>The variable irmpok is returning false, I did check that.
>
>txtirpm1 is the field I want to go to.
>
>Any ideas?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform