Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setall
Message
From
18/07/2008 10:29:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Setall
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01332277
Message ID:
01332281
Views:
8
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform