Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_CUROBJ vs. SetFocus
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
_CUROBJ vs. SetFocus
Miscellaneous
Thread ID:
00489558
Message ID:
00489558
Views:
47
I have a app that I have converted from FP/DOS 2.6 to VFP 6.0. One of the forms uses a lot of _CUROBJ = OBJNUM(varname) statements to set focus to a different field in the Valid methods. I know I should be using SetFocus, but SetFocus can not be used in the Valid method.

How do you SetFocus to a different field based on the value of another field? For instance, if the Value of the "Status" field is set to "Completed" I want to SetFocus to the "Completed Date" field, which is at the bottom of the form.

_CUROBJ = OBJNUM(varname) used to work and for some unknown reason it stopped working. Focus does not jump to the varname field, but to a different field.

Thank You.
Dennis Lindeman
Next
Reply
Map
View

Click here to load this message in the networking platform