Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Concatenating property strings?
Message
De
10/07/1997 16:12:12
 
 
À
10/07/1997 16:06:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00039331
Message ID:
00039339
Vues:
35
>>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.

I'm sorry, have to repeat the reply:
You can use either:
Thisform.Grid1.Columns().backcolor=nColor
either:
Thisform.Grid1.Column&m..backcolor=nColor
or the best:
Thisform.Setall("backcolor",nColor,"column")
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform