>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 ?
An iif() requires 3 parameters, not 2:
iif(read = 1, .F., .T.)
or
iif(read = 1, .T., .F.)
Since read=1 is already a logical condition, you don't need the iif(), just replace the entire iif() with read=1, or read#1.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)