Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ThisForm.FirstObject.SetFocus
Message
From
16/11/2001 17:33:11
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00582940
Message ID:
00583020
Views:
37
>
>...
>If oCtl.TabIndex < lnIndex
>   IF PemStatus(oCtl,"SEtfocus",5)
>      lnIndex = oCtl.TabIndex
>      This.FirstControl = oCtl.Name
>   ENDIF
>Endif
>...
>
>
>Don't forget to check if the found control has a SetFocus method. Also the code didn't deal with the only control in the fomr being a pageframe or grid, whereon you would need to drill into those objects to find the "first" control.

You've got a point there. Either that or check for the Tabstop property.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform