Change text based on criteria

Stimulsoft Reports.NET discussion
Post Reply
mmurdock
Posts: 94
Joined: Tue Mar 20, 2007 4:59 pm

Change text based on criteria

Post by mmurdock »

I need to change some text in a text field based on criteria. I've tried something like this but it doesn't seem to do anything.

Text21.Text.Value=IIF(varisAlarm="Y", "ALARM","ALERT")

varisAlerm is set while data is being iterated through in a data group. I need to be able to change text that is in in a previous group as well as a group after the data group.

Thanks,

Mat
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Change text based on criteria

Post by Jan »

Hello Mat,

Please use following expression:

Code: Select all

{varisAlarm == "Y" ? "ALARM" : "ALERT"}

Thank you.
Post Reply