Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids
Message
 
 
À
02/03/2001 20:53:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Grids
Divers
Thread ID:
00481607
Message ID:
00481609
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform