Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Color Of Text Based Upon Datasource Value

Status
Not open for further replies.

skuhlman

Programmer
Jun 10, 2002
260
US
One of the fields in my data source contains one of the basic 15 colors used in the color dialog boxes (ie RED, BLACK, LIME, NAVY, SILVER...). I would like to just put the field in the color dialog box like:

{MyDataSource.MyColorField}

Since I can put "RED" in the conditional formating box and it changes the text to red, I would expect this to work, however the editor thinks that the "formula" must result in a number and a value of 'RED' in the field apparently isn't concidered a number.

Is there an easy way to "evaluate" the contents of my field instead of having to write a big if statement to handle all of the possible colors?

Thanks in advance.
 
I'm afraid not, it's the age oldpain that you can't transpose values to syntax in Crystal.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top