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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change text color in Long field

Status
Not open for further replies.

cbriell

MIS
Mar 3, 2005
6
US
I apologize for a repeat post, but I was hoping to get some additional info from a previous post (thread767-1146037).

I am on Crystal XI sp2 and Oracle 8.17. We have a long(memo) field that I would like to change the color of a keyword. Here is my formula:

replace({RESULT_TEXT.LONG_RESULT_VALUE},"Syncope","<font color=red>Syncope</font>")

How do I take into account other spellings of the word? Can I make it case insensitive? I tried putting in an "and/or" statement but it then becomes a boolean formula. I wasn't sure how to create proper statement to fullfil the boolean.

Thank you for all the help you have provided. I have gotten so much knowledge from this forum.

Chris
 
One additional question...Do you have to use the HTML? The field loses the carriage returns in the HTML format.
 
To address the case issue, you could do this:

replace(ucase({RESULT_TEXT.LONG_RESULT_VALUE}),"SYNCOPE","<font color=red>Syncope</font>")

To address other spellings, you could nest the statement, as in:

replace(ucase(replace(ucase({RESULT_TEXT.LONG_RESULT_VALUE}),"SYNCOPE","<font color=red>Syncope</font>")),"SINCOPE","<font color=red>Syncope</font>")

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top