Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_CUROBJ vs. SetFocus
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
_CUROBJ vs. SetFocus
Divers
Thread ID:
00489558
Message ID:
00489558
Vues:
48
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform