Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicBackColor of Each Column are different!
Message
From
20/08/1999 21:42:48
 
 
To
20/08/1999 05:46:42
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00255740
Message ID:
00256163
Views:
27
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform