Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetAll to DynamicBackcolor
Message
From
08/10/2003 11:38:35
 
 
To
08/10/2003 11:38:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00836254
Message ID:
00836272
Views:
9
oops, forgot to take out a line...
>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
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
Reply
Map
View

Click here to load this message in the networking platform