Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding first in tab order?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00433840
Message ID:
00433912
Views:
36
Mark,

Creating a property that you have to set at design time is a maintenance headache. Writing one method in the appropriate level form class isn't that bad. I'd also store this as a name reference instead of an object reference.
lnMinTabIndex = 2147483647 && 0x7FFFFFFF
for each loControl in this.Controls
   if ( loControl.TabIndex < lnMinTabIndex )
      this.cFirstControl = loControl.Name
      lnMinTabIndex = loControl.TabIndex
   endif
endfor
>Hmmm, sounds much more complicated than I thought, and more than the example I saw for going through the controls on the form. Maybe it would be better to create a property to hold the appropriate control? But I'd still want to know the real first control if that property was not populated.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform