Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GenRepoX3 - *:IF_COLOR
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00230625
Message ID:
00232083
Views:
17
>>Hi all,
>>
>>I just downloaded GenRepoX3 and am trying to figure it out. I can't get into the eps Chat room, so I'll try here for some help. I have a table with an integer field. I store color values in it. I want certain fields in the Detail Band to print in the color contained in that field for whatever record is printing. The *:IF_COLOR seems to be the command I want, but it requires you to pass the Color in the format:
>>
>>RGB(255,0,0,0,0,0)
>>
>>It doesn't seem to like numeric input in any way, so I created a method on my App Object which would take a value ( or 2 ) and return a string in the above format. Now, I can't get it to call that method and use the return value. I tried using the {{&var}} command in conjunction to no avail. Here's some of what I tried:
>>
>>*:IF_COLOR .t. oApp.RepoXColor(field)
>>*:IF_COLOR .t. (oApp.RepoXColor(field))
>>*:IF_COLOR .t. Eval(oApp.RepoXColor(field))
>>MyVar = 'oApp.RepoXColor(field)'
>>*:IF_COLOR .t. {{&MyVar}}
>>
>>None of this works. Any ideas???
>>
>>TIA
>
>
>Hi!
>
>You need to use the RGB(x,x,x,x,x,x) format. Dynamic coloring in the way you are trying to go is not supported (unfortunately). This is due to the way the VFP report engine works.
>
>Sorry...
>
>Markus

So I can't do dynamic coloring unless I hard code the colors??? Also, how can I get into the chat/discussion room on the eps site?
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform