Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid headers
Message
From
09/11/2005 07:46:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/11/2005 06:52:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01066723
Message ID:
01066729
Views:
18
>Hi all,
>I have 2 small problem in my grid:
>1. why the following command not do nothing:
>
this.SetAll("dynamicbackcolor",rgb(125,252,145), "cell")
>2. why do I get error message by this command:
>
this.SetAll("dynamicbackcolor",rgb(125,252,145), "cell")for value='dd'
>
>Thank's in advance
>Chaim

1)
this.SetAll("dynamicbackcolor","rgb(125,252,145)", "cell")
-Cell should be a class name for it to work.
-This code tells to set the backcolor with no evaluation (constant rgb(125,252,145)) an thus is not actually a 'dynamic' setting. Equivalant to:
this.SetAll("backcolor",rgb(125,252,145), "cell")
DynamicBackColor's is an expression and thus in quotes. Backcolor's is a constant value.

2) I think there is a typo:) If not I'd error asking:
What is
for value='dd'
there?

Probably what you wanted to do was this:
this.SetAll("dynamicbackcolor","iif(myTable.Value='dd',rgb(125,252,145),rgb(255,255,255))")
Note that I didn't use 'cell' thinking you don't actually have an objects based on 'cell' class but you meant to apply it to cells.
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
Next
Reply
Map
View

Click here to load this message in the networking platform