>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