Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setall
Message
De
18/07/2008 11:04:22
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
18/07/2008 10:49:55
Alhad Marathe
Asm Consulting
Mumbai, Inde
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:
01332307
Vues:
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 ?
>>
>>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform