Thanks. that did it. i thought that it would set the textbox forecolor and not affect the cmdbutton... but it worked.
>I have a "notes" command button in a column of a grid. I want to set the forecolor for the command button to blue if the note field is NOT empty (for each particular row), and black if it is empty. How is this done?
>
>In Init Method of the form:
>
>thisform.Grid1.Column1.DynamycForeColor = "IIF(EMPTY(MyTable.NoteField),RGB(0,0,0),RGB(0,0,255))"
>
>
>Column1 is the column tha has the command button, set Sparce to .f.
>
>This work in VFP 8.0 ( never tesetd in earlier).