cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional color change for string

Former Member
0 Kudos

I am trying to conditionally change PART of a string to a different color.

similar to:

stringvar sResult;

if InStr({Table.Name}, '~~') > 0 then

sResult := "First part of {Table.Name} string "

sResult := [Change color to Red] + "~~next part of {Table.Name} string"

sResult := [Change color to Black] + "last part of {Table.Name} string"

else

sResult := {Table.Name}

Anyone know if this is possible?

Any help is much appreciated.

Ian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, Ian;

This question should be posted to our Crystal Reports Design forum.

Regadrds,

Jonathan

Former Member
0 Kudos

Thanks Jonathan - reposted as directed.

Answers (0)