Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetAll and grid DynamicBackcolor question
Message
From
15/05/2004 06:11:16
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00904211
Message ID:
00904297
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
Change to :

DynamicBackColor is a Character expression
thisForm.pgfpagerefresh1.page4.Grdtmdataentry1.SetAll("DynamicBackColor", "thisform.zGridColor()", "Column" )	
The evaluation of the DynamicBackColor expression must return a Color value
* cColor = "RGB(255,255,255)"	 && useless
DO CASE
   CASE taskcomp	                  && done... GREEN
      RETURN RGB(215,255,215)
   CASE EMPTY(taskend) AND taskbeg <= DATE() + 9
      RETURN IIF(taskbeg <= DATE() + 2,RGB(255,222,213),RGB(250,253,193))
   OTHERWISE
      RETURN  RGB(255,255,255)  	&& white
ENDCASE
If you use a IIF(,IIF(,... expression you can remove the zGridColor method.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform