Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Button in Grid ForeColor change
Message
 
 
To
07/04/2018 04:20:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01659197
Message ID:
01659216
Views:
51
Thank you very much!

>Check for dynamicForecolor in grid column:this is a prototype
>
>with thisform.grid1
>.setall("Dynamicforecolor","iif(mod(recno(),2)=0,rgb(0,255,0),rgb(255,255,255)","column") && here altern rows forecolor in 2 colors
>endwith
>
>adapt the condition "iif.....",to your real one. put it between quotes to be evaluated at runtime.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform