Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing color of changed cells
Message
From
15/09/1998 16:19:20
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Changing color of changed cells
Miscellaneous
Thread ID:
00136971
Message ID:
00136971
Views:
65
Somebody told me once how to make cells in a grid that have changed be a different color, but I cannot find where I wrote that down.

This is what I tried:
FOR i = 1 TO THIS.columncount
   THIS.COLUMNS[i].dynamicforecolor = ;
      "IIF CURVAL(EVAL(THIS.controlsource)) <> OLDVAL(EVAL(THIS.controlsource)), ;
       RGB(255,0,0), RGB(0,0,0))"
ENDFOR
I also tried it without the EVAL, and with an & instead. It doesn't give an error; it just doesn't work.

As I'm typing this, I just got a clue. I'm using a view, so the controlsource is a field in the view, not the table. Is that why?

How do I make this work with a view?

Thanks,

-Michelle
Next
Reply
Map
View

Click here to load this message in the networking platform