Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Cell Forecolor
Message
From
21/02/2013 15:41:38
 
 
To
21/02/2013 13:44:26
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01566698
Message ID:
01566710
Views:
34
>Is this how I would do It? It seems to be ignoring my conditions and is showing them all with a blue ForeColor.
>
>
>.COLUMN2.DynamicForeColor=	ICASE(SUBSTR(ALLTRIM(TempCalendar.cField1),1,1) = "!" ,[255,0,0],SUBSTR(ALLTRIM(TempCalendar.cField1),1,1) = "@",[0, 0, 255],[0, 0, 0])
>
I haven't dealt with this in ages but you may need to enclose the expression in quotes like this:
.COLUMN2.DynamicForeColor=	'ICASE(SUBSTR(ALLTRIM(TempCalendar.cField1),1,1) = "!" ,[255,0,0],SUBSTR(ALLTRIM(TempCalendar.cField1),1,1) = "@",[0, 0, 255],[0, 0, 0])'
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform