Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid DynamicBackColor
Message
 
 
To
21/01/2008 22:27:51
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01283894
Message ID:
01283974
Views:
13
>Trying to set the DynamicBackColor in a grid to a value in a cursor.
>
>
>MyCursor.Sch_BackColor = "RGB(111,222,333)"
>
>
>Hardcoded into the formula works:
>
>
>="IIF( .T., RGB(111,222,333), 0)"
>
>
>These do not:
>
>
>="IIF( .T., Sch_BackColor, 0)"
>="IIF( .T.," + TRANSFORM(Sch_BackColor) + ", 0)"
>="IIF( .T., EVAL(Sch_BackColor), 0)"
>
>
>How do I do this? Thanks!

If you would have Sch_BackColor as an integer, then simply DynamicBackColor = "MyCursor.Sch_BackColor" should work.

In your case it may be VAL(MyCursor.Sch_BackColor).
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform