Glad you found it.
Regards,
Don
>Thanks again, I've found the error, it was the field name inside the empty() function. I was using the wrong field.
>
>
>
>>>Can somebody tell me why this code doesn't work on VFP7? I have the same code on VFP6 and it works.
>>>
>>>
>>>ThisForm.Fpage1.Page2.Fgrid1.Setall("DynamicBackColor","iif(Empty;
>>>(Curopc.Objeto),RGB(0,255,0),RGB(255,255,255))","column")
>>>
>>>
>>>It genates and DynamicBackColor evaluates to an invalid expression error.
>>>
>>>TIA,
>>>
>>>Enmanuel
>>
>>
>>Enmanuel,
>>
>>Try this:
>>
>>>
>>>ThisForm.Fpage1.Page2.Fgrid1.Setall("DynamicBackColor","iif(Empty" + ;
>>>"(Curopc.Objeto),RGB(0,255,0),RGB(255,255,255))","column")
>>>
>>
>>
>>Hope this helps.
>>
>>Don