Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamicforecolor in one column only
Message
De
06/01/2006 03:49:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/01/2006 03:16:52
Rasheed Al Rasheed
Riyadh Armed Forces Hospital
Riyadh, Arabie Saoudite
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01083929
Message ID:
01083938
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>Hi All
>
>I have a grid which I want to set the forecolor based on a value, the code is like this:
>
>oGrd.SetAll("dynamicbackcolor", "", "Column")
>oGrd.SetAll("dynamicforecolor", "", "Column")
>
>oGrd.SetAll("dynamicforecolor", ;
> "IIF(Credit > 0,RGB(0,121,0), RGB(198,0,0))", "Column")
>
>The above works fine, but I want to change the color of column 6 according to the balance value, so i tried:
>
>oGrd.Columns[6].SetAll("dynamicforecolor", ;
> "IIF(balance > 0,RGB(0,0,255), RGB(0,0,0))", "Column")
>
>also tried
>oGrd.Column6.DynamicforeColor = IIF(balance > 0,"RGB(0,0,255)", "RGB(0,0,0)")
>and again no luck.
>
>Any help is much appreciated.
>
>Thanks
oGrd.Columns[6].Dynamicforecolor = "IIF(myAlias.balance > 0,RGB(0,0,255), RGB(0,0,0))"
PS: Include alias as in sample.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform