Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to add a FOR loop to update a grid?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00255835
Message ID:
00255930
Views:
25
>I have this so far in the grid.init
>
>For i= 1 to This.columncount
>*-- create strin for column #
> mpre="This.Column"
> mpost=".Text1.dblclick()"
> mstr1=mpre+alltrim(str(i))+mpost
>*-- verify count is correct
> Wait wind mstr1
>
>*ThisForm.pgfBizObj.ActivePage = ThisForm.nGoToPageOnEdit
>Endfor
>
>
>I cant seem to figure out how to add the last commented line?
>
>My with / end with didn't work.
>
>TIA
>
>__Stephen

You can't add code to a method at runtime. You'll have to wither manually add this code to each textbox in the grid, or create a textbox class that has this code in it, and loop through the columns at runtime, adding this subclassed textbox and removing the stock textbox.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform