>>>I trying the implement font bold to not read messages
>>>
>>>
>>>I have a table with a field "read"
>>>
>>>thisform.grid2.setall("fonbold","IIF(READ = 1 ,.F.))
>>>
>>>Could anybody help to find out what is wrong in the expression above ?
>>
>>thisform.grid2.setall("fonTbold","READ = 1")
>
>
>Try this,
>
>THIS.SetAll("DYNAMICFONTBOLD","IIF(READ=0,.T.,.F.)","COLUMN")
>
>This will also automatically change the Bold property when the value of "READ" changes.
>
>Alhad
You don't need to use .t./.f. in an iif(). The first parameter is already a boolean expression. IOW:
IIF(READ=0,.T.,.F.)
is equivalant to:
READ=0
Also you don't need to include "column" unless you really want to limit the result to base column class.
Cetin