Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gridhighlighter Colors
Message
 
To
08/09/2005 12:57:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01047761
Message ID:
01047857
Views:
7
Cetin

Thanks for that

I understand that your first line

* Anywhere you want to set dynamic coloring - ie: form init
thisform.myGrid.Setall('DynamicBackColor','(thisform.GimmeColor(manifest.status))')

Can go in form init for example

Where do i put the rest of the code? I can't include that in the form init can I?

Please excuse my lack of expertise in this area

Colin

*Form custom GimmeColor
lparameters tcValue
do case
case m.tcValue = 'A'
return 0xFF0000
case m.tcValue = 'B'
return 0x00FF00
case m.tcValue = 'C'
return 0x0000FF
otherwise
return 0xFFFFFF
endcase

>>I have tried multiple colors in a grid before but so far have not cracked it even with help from the experts
>>
>>Let me try again
>>
>>I have a table called manifest which has a field called status
>>
>>If status is A I want to color the row blue
>>If B the row will be red
>>If C the row will be green
>>
>>How do I do it?
>>
>>A real layman's explanation would be greatly appreciated
>>
>>Thanks
>>
>>Colin Northway
>
>
>* Anywhere you want to set dynamic coloring - ie: form init
>thisform.myGrid.Setall('DynamicBackColor','(thisform.GimmeColor(manifest.status))')
>
>*Form custom GimmeColor
>lparameters tcValue
>do case
>case m.tcValue = 'A'
> return 0xFF0000
>case m.tcValue = 'B'
> return 0x00FF00
>case m.tcValue = 'C'
> return 0x0000FF
>otherwise
> return 0xFFFFFF
>endcase
Cetin
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Previous
Reply
Map
View

Click here to load this message in the networking platform