Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setall
Message
De
18/07/2008 10:29:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Setall
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01332277
Message ID:
01332281
Vues:
7
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform