Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help convert from _CUROBJ and OBJNUM
Message
From
21/08/1998 17:26:59
 
 
To
21/08/1998 17:21:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00128943
Message ID:
00128947
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform