Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Concatenating property strings?
Message
From
10/07/1997 16:06:51
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00039331
Message ID:
00039334
Views:
36
>We know that:
>thisform.grid1.column1.backcolor = 0
>
>changes the color property in column1 of the grid;
>
>but if we have 100 cols
>
>n = 100
>m = 0
>for i = 1 to n
> m = m + 1
> **THE PROBLEM:(these two didn't work)
> *thisform.grid1.column(m).backcolor = 0
> *thisform.grid1.column&m.backcolor = 0
>endfor
>
>how can it be done?
>
>Thanks
>
>Gil

Firstly, check the syntax: it should be Thisform.Grid1.Columns.backcolor
Also, it's much nicer to use Grid1.SetAll.
Also, it's good idea to Grid1.Refresh.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform