Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drilling Down to Objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00570451
Message ID:
00570473
Vues:
27
>Hi All,
>
>I understand how to drill down to various objects on a form but how can you tell which object is first (in Tab order) on the form (or container) while drilling down?
>
>For example if I called the valdation method of an object and wanted to set focus to the first object that failed. How?
>
>
>Thanks
>

Robert
I'm not sure what you mean. When you run the validation code in a container with objects, you could fairly easily call the SetFocus method of the object that failed:
local ox
for each ox in MyContainer.Objects
   if !ox.Validation() then
      ox.SetFocus()
      exit
   else
      * object ox passed Validation
   endif
endfor
HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform