Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to NOT change DynamicBackColor
Message
From
23/02/2005 02:58:14
 
 
To
23/02/2005 01:21:23
Randy Wessels
Screentek Business Solutions, Llc.
Phoenix, Arizona, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00989507
Message ID:
00989515
Views:
22
>this.column4.DynamicBackColor = 'iif(duedate < DATE(),RGB(255,50,50),this.column4.DynamicBackColor)'

Try this instead:
this.column4.DynamicBackColor = 'iif(duedate < DATE(),RGB(255,50,50),'+this.column4.DynamicBackColor+')'

This is assuming, that this.column4.DynamicBackcolor is already set to some expression resulting in a color.

If it get's too complex, maybe create a function in the form, that you call from DynamicBackcolor:
this.column4.DynamicBackColor = 'thisform.columncolor(duedate)'

* thisform.columncolor method:
LPARAMETERS tdDueDate
...
Return RGB(...)

Bye, Olaf.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform