Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setall
Message
From
18/07/2008 11:04:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
18/07/2008 10:49:55
Alhad Marathe
Asm Consulting
Mumbai, India
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:
01332307
Views:
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 ?
>>
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform