Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help convert from _CUROBJ and OBJNUM
Message
De
21/08/1998 17:26:59
 
 
À
21/08/1998 17:21:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00128943
Message ID:
00128947
Vues:
18
Hi David ---

>I do not understand VFP5 use of TabIndex and ActiveControl. Can I get a sample of an event giving control to a specific textbox. VFP help is not helping. TIA

Let's say that you wanted to activate a textbox (txtName) when a Form is Inited. In the Init of the Form you could have the following code:

THIS.txtName.SetFocus()

The SetFocus method sets focus to a given control. ActiveControl is a placeholder giving an object reference to the currently selected control. So...in the above example....

THISFORM.ActiveControl.Name = "txtName"

OK?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform