Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple: Object setfocus in a form
Message
From
31/03/1999 00:42:47
 
 
To
31/03/1999 00:40:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00203750
Message ID:
00203751
Views:
21
Place the code in the Init of the Form...for example, THISFORM.cmdOK.SetFocus()

>I've created a form with a few buttons and a textbox. When I run the form, I want the Command Button that I want to be SETFOCUS. I have gone through the Help and out some code such as cmdOK.setfocus() in the Load Procedure of the form. However, the error said that Object Not found. I was wondering how I should put it correctly since I already have an object cmdOK in my form.
>
>Thanks.
>
>C.D.Gan
>
>Newbies is like that..
------------------------------------------------
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