Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus on tab order
Message
From
26/02/2003 08:38:47
 
 
To
26/02/2003 08:03:33
Julie Ball
Gardner Publications, Inc.
Cincinnati, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00757997
Message ID:
00758011
Views:
21
This message has been marked as a message which has helped to the initial question of the thread.
>What is the code that I use to set focus onto the tab order #1 item on a form? In otherwords I have an add button (class) that when the user clicks on it then the set focus is on the (whatever control it might be) tab order #1.

Jaime's code should work fine, but remember that some controls (ie - ole controls) may not have a tab index, so make sure you test before calling on the tabindex property.

For instance:
If Pemstatus(lCurControl,"TabIndex",5)
...
...
Endif
Alan
Previous
Reply
Map
View

Click here to load this message in the networking platform