Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding first in tab order?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00433840
Message ID:
00433912
Vues:
37
Mark,

Creating a property that you have to set at design time is a maintenance headache. Writing one method in the appropriate level form class isn't that bad. I'd also store this as a name reference instead of an object reference.
lnMinTabIndex = 2147483647 && 0x7FFFFFFF
for each loControl in this.Controls
   if ( loControl.TabIndex < lnMinTabIndex )
      this.cFirstControl = loControl.Name
      lnMinTabIndex = loControl.TabIndex
   endif
endfor
>Hmmm, sounds much more complicated than I thought, and more than the example I saw for going through the controls on the form. Maybe it would be better to create a property to hold the appropriate control? But I'd still want to know the real first control if that property was not populated.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform