Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus to the first control
Message
 
To
11/07/1999 13:36:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00239958
Message ID:
00239975
Views:
6
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform