Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid DynamicBackColor Using A Method Instead of IIF?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00148063
Message ID:
00148076
Views:
23
Hi Michael,

>I have a grid I need to have many different row colors based on the value of a field. Easy enough using an IIF in the DynamicBackColor property. However, I need to check for about 15 different values. Obviously, I can't nest IIF's this deep. My next idea was to created a method in the grid class which returns the proper color, but this doesn't seem to work either.

In which way doesn't it seem to work?

Since method calls are rather slow, you should consider to use an array. What kind of conditions do you have?

Christof
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform