>Hi,
>
>WITH ThisForm.Grid1
>
> .SETALL("DynamicBackColor", "IIF(RECNO('mytest')=lnROw, RGB(0,0,128), RGB(255,255,255))", "Column")
>
> .SETALL("DynamicForeColor", "IIF(RECNO('mytest')=lnROw, RGB(255,255,255), RGB(0,0,0))", "Column")
>
>ENDWITH
>
>
>lnRow was defined as public.
>
>Again, as I said I ever try to use gridhighlighter class downloaded from download section. This class will handle the highlight for me, what I need to do is just set the property for backcolor/forecolor. But it is too bad for me that, error still occured.
>
>
>:((
Hi John,
Does the .DynamicBackColor expression appear valid in the debugger when the error happens? What is the value of lnRow then? Does it correspond to the actual row in the table at the moment?
Very rarely, but I have seen some unexplainable situations with "invalid expression" error message and the grid worked fine before or next time.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison