Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6SP5 - SetFocus to the first user control text, butt
Message
From
22/05/2003 11:57:36
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00790342
Message ID:
00791679
Views:
35
Bhavdhuti,

To me, it makes more sense to loop through the controls one time when the form initializes, and store a reference to the object with the lowest tabIndex into a custom property of the form. Then, to set focus, all you do is:
thisform.oFirstControl.setfocus()  && hypothetical form property...
>Here is my version. Note the STEP -1 and Conditional check in PageFrame only if there are no controls on the form.
>
< snip >
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform