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