Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forecolor flexibility in grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00176326
Message ID:
00182115
Views:
13
Neil,
Gaston's code is for VFP6. Is that what you are using?

Barbara

>>I don't kwnow if this can be useful for you, I have a grid with a column (Code),
>>I change dinamically colors if code > 0 then Red, if code >10 then blue, else black
>>
>>My code is similar to this:
>>
>>define class myGrid as Grid
>>colorType = RGB(0,0,0)
>>
>> PROCEDURE colorType_ACCESS && Access method
>> IF CliTel > 10
>> this.pepe = RGB(0,255,0)
>> else
>> if CliTel < 0
>> this.pepe = RGB(255,0,128)
>> else
>> this.pepe = RGB(255,0,255)
>> endif
>> endif
>>
>> RETURN this.pepe
>> ENDPROC
>>
>>
>> PROCEDURE Init
>> THIS.Column1.DynamicForeColor="IIF( 12 > 10 ,eval('this.colorType'),THIS.Column1.ForeColor)"
>
>
>
>Thanx for giving my problem a look at:
>
>I am intrigued by your solution. I cannot get your code to work. Perhaps I am making some assumptions about it. Please re-read your code and offer me some guidance in duplicating your solution.
>
>Thanx again
>Neil
>dadigidoc@aol.com
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform