Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicBackColor problems
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00064079
Message ID:
00064363
Views:
48
>>To get the effect you are looking for, type this (exactly) in the grid's init:
>>this.SetAll("DynamicBackColor", "IIF(MOD(RECNO( ), 2)=0, RGB(255,255,255) , RGB(0,255,0))", "Column")
>
>Erik... thanks but I want to change the row colour based on the value in column 1 not every second line.

Erik, simply change the function "MOD(Recno(),2)=0" to anything you want. Try with some simple item like "This.column1.text1.value = 4", then upgrade it. You can even use a UDF here, where the UDF contains a case statement about the values. I've used this to track values above or below certain limits.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform