>I have replaced the textbox in a grid column with a command
>button with the caption 'View' to indicate when the memo
>field has data in it.
>
>Anyone know how to dynamically set the button's FontBold
>property when the field has data in it?
>
>Thanks
I would totally rethink how you are doing this. I would not use a command button in a grid column. In fact, I would not even have that column with a memo field. I would place a command button on the form. In the Grid's AfterRowColChange method, I would put:
local llHasData
llHasData = !empty(mytable.mymemo)
with ThisForm.cmdMemoField
.FontBold = llHasData
.ForeColor = iif(llHasData, rgb(255,0,0), rgb(0,0,0))
endwith
Mark McCasland
Midlothian, TX USA