Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Still trying to set different colors for fields in a gri
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01586262
Message ID:
01586308
Vues:
71
J'aime (1)
>Hugo,
>
>Thank you for your reply. I hope you don't mind me asking a follow up question. It sounds like your
>solution turns the whole column one color or another based on the value. Am I wrong in this
>assumption? The reason I ask is that my initial explanation of my goal may not have been clear.
>
>What I need to be able to do is have row 1, column 1 be one color and row 2 column 1 be a
>different color. Following is an example of what I need. I will use B for blue, G for Green, and R for red.
>
> col1 col2 col3 col4
>
>row 1 R B R G
>row 2 B B G R
>row 3 G G B B
>
>I hope this makes it more clear. If you response takes care of this just say so and I'll give it a try.
>If not, any other ideas would be appreciated.

You can just change the getColor function to whatever you want, as complex as you want it to be, of course with an eye on performance. My getColor example is very rudimentary for I just trying to show you one way of doing this, and about running the code, just copy it to a foxpro editor, select the text and chose run, you can see what it does, and play with getColor to get more colors for each column if you want
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform