>.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])'