Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic forecolor problem - VFP 8.0 grid
Message
From
03/06/2003 14:54:15
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00795076
Message ID:
00795844
Views:
86
Hi Nancy.

As you can see I had to change this.value to a function call where I passed the field name like you suggested.

thisform.grid1.SetAll("DynamicForeColor", "f_color(sex)", "Column")


You are making this much more difficult than it needs to be < s >. I assume that the grid's RecordSource has a field in it named 'Sex'. Let us assume that the RecordSource is pulls its data from an Alias called 'MyAlias'. Just put this expression in the DynamicForeColor property of the column that has MyAlias.Sex as its ControlSource:

IIF( ALLTRIM( MyAlias.Sex ) == 'Female', RGB( 255, 0, 0 ), RGB( 0, 0, 0 ) )
Previous
Reply
Map
View

Click here to load this message in the networking platform