Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DynamicBackColor of Each Column are different!
Message
De
20/08/1999 21:42:48
 
 
À
20/08/1999 05:46:42
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00255740
Message ID:
00256163
Vues:
26
>Justok,
>First the expression is wrong. You must put the whole expression as a char string :
.DynamicBackColor = "IIF(Empty(myTable.Field1),rgb(0,0,0),rgb(192,192,255))"
Next, to make the life easier for you, you could delegate the coloring to a function :
*Grid.init
>for each oColumn in ThisForm.Grid1.columns
> oColumn.DynamicBackColor = "GimmeColor(["+oColumn.Controlsource+"])"
>endfor
Your function would then return a color based on controlsource.
>Cetin



Thanks both of you!

What happen if I pass "This.name" inside setall() function?

Thisform.grd1.SetAll("Caption", "This.Name", "Header")

grd1.name or header1.name ?!

if use header1.name, I can do:

Thisform.grd1.SetAll("DynamicBackColor", "Thisform.GimmeColor(This.ColumOrder)", "Column")

^_~
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform