>Thanks Josh, I'll give it a try! I've written the code for detecting changed records and it works successfully. It's a simple app that requires no data entry, just the viewing of text files, after import into the database, in three different variations, a grid, a report and another form that has specifics about the item on it, with all three of these forms being on the screen at one time.
Just a tip - when you run this code, write this result into a field in the table, cursor or whatever you show in the grid. This way you can have
IIF(alias.Changed,RGB(255,0,0),RGB(255,255,255))
which will work reasonably quicker than if you run a function as the first argument of this Iif(); I have an impression that Dynamic* properties are re-evaluated for every cell in the grid when it refreshes. If I'm right, the expression should be kept as simple as possible.
Furthermore, you may store your choice of colors into an array:
bgColor[1]=rgb(255,255,255)
bgColor[2]=rgb(255,255,127)
...
bgColor[10]=rgb(63,63,63)
and have a, say, Bgc field in your table/cursor/view with values of 1 to 10. Now your DynamicBackColor may be
="bgColor[alias.bgc]"
and this may be even quicker than Iif, because it involves no calculation, and should look rather nice (if you hit the right colors :).