Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
For each
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00902688
Message ID:
00902698
Views:
20
>How can I find out all the textbox coltrol in grid? I try
>
>For each oControl IN thisform.grid1.columns
> if oControl.baseclass = 'textbox'
> endif
>endfor
>
>
>But fail...
>
>
>TIA.

The code you're using is only looping through the columns, but not the controls in each column. You need another nested FOR..ENDFOR loop.
For each oColumn IN thisform.grid1.columns
   for each oControl in oColumn
      if upper(oControl.baseclass) = "TEXTBOX"
      endif
   endfor
endfor
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform