Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GenRepoX3 - *:IF_COLOR
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
GenRepoX3 - *:IF_COLOR
Divers
Thread ID:
00230625
Message ID:
00230625
Vues:
56
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
_________________________________
There are 2 types of people in the world:
    Those who need closure
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform