Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus to the first control
Message
De
11/07/1999 15:07:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00239958
Message ID:
00239982
Vues:
11
>Antonio,
>
>You can work through the controls collection and check the TabIndex property for each one until you find the one where TabIndex is 1.
>
>
>FOR EACH oCont IN Thisform.Controls
>    IF oCont.TabIndex = 1
>       oCont.SetFocus()
>       EXIT
>    ENDIF
>ENDFOR
>
>
>You may need to use PEMSTATUS() to insure that the control you are looking at has a TabIndex property.

If the control he wants to setfocus on is determined by first in the tab order, wouldn't that already have focus? And the Tab Order wouldn't always be correct, so the awnser to his first question probably should be "you'l have to set the Tab Order on every form." Just what I thought so correct me if I'm wrong.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform