Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Grids
Miscellaneous
Thread ID:
00481607
Message ID:
00481609
Views:
13
>In my generic grid I have the following code in the fresh of the grid that refresh each column:
>LOCAL lnKount, lnPages
>lnColumn = This.ColumnCount
>For lnKount = 1 TO lnColumn
> lcobject = "This.Column" + Alltrim(Str(lnKount))
> &lcobject..refresh()
>Endfor
>
>However I find that if I name each of column on the form this doesn't work. That is something other than column1 etc. Is there any way I can change the above code so that I can name the column and still have the code in each of column refresh when I call the refresh of the grid.
Grid.Refresh()
local ix
with this
     for ix=1 to .columncount
		with .columns(ix)
	            .Refresh()
               endwith
     next
endwith
I'm not sure, why do you want to call column.refresh() though. I never did this...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform