Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicBackColor
Message
From
02/03/2005 19:01:58
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00992235
Message ID:
00992241
Views:
35
>The Dynamic properties are avaluated on grid level so This in the expresion refers ro the grid not a column.


hmmm, how can i then change the color of each individual cell depending on its value? is this possible with DynamicBackColor?


>>
>>3 years ago (or so) i had problems with that DynamicBackColor thing. doesn't seem i have learned anything in that time :-(
>>
>>the foloowing code causes the grid to error with "Expression is invalid. use a valid expr for Dyn..."
>>
>>the firld in the table is a numeric field and the columnCount=-1 in the grid to automaticly add the columns at run-time. the SetAll Command is issued after the grid receives ControlSource="MyTable"
>>
>>
>>THIS._grid1.SETALL(;
>>	"DyNamicBackColor", ;
>>	"IIF(eval(This.ControlSource)<10,RGB(0,255,255),
>IIF(BETWEEN(eval(This.ControlSource),10,20),RGB(0,255,0),RGB(255,0,0)))", ;
>>	"Column")
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform