Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetAll to DynamicBackcolor
Message
From
08/10/2003 11:38:01
 
 
To
08/10/2003 11:28:22
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00836254
Message ID:
00836271
Views:
11
In that case, you'll have to loop through the columns and do it
(and are you sure you want the back color to be black, or is it the DynamicForeColor you want?)
** grid.Init()
Local lcSource, loCol
lcSource=this.RecordSource
For Each loCol in this.Columns
  loCol.DynamicBackColor="IIf("+loCol.ControlSource+"<0, RGB(255,0,0), RGB(0,0,0))"
Next
>Sorry Metin, this can't work.
>The grid has 12 columns for the 12 months of the year. VALUE is not a field. Each coloumn in the grid represents a diffrent field, so when I run it an error message appears saying: "Expression is invalid. Use a valid expression for DYNAMICBACKCOLOR"
>Maybe I didn't make myself clear enough.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform