>I've seen this used, even at framework level, but if the grid has a sufficient number >of rows, method call overhead can make grid refreshes slow. Most probably nothing to >worry about on today's machines, but just try that with debugger open... it won't >matter whether you have the coffee ready, you'll have time enough to brew some.
That's true, good point!
But for maintenance purposes and better readablity such a function is better than a complex expression. Maybe make it dependant on trace mode:
dynamicbackcolor = iif(wexist("trace"),rgb(255,255,255),colorfunctioncall(data))
Bye, Olaf.