Help - Search - Members - Calendar
Full Version: Conditional Statements in the Group Header
Fast Reports forum > Fast Reports Products > FastReport 3.0
jriggs
I need to create a text object in the group header that will change depending on the grouping condition. I am attempting the following condition in a text object:

IIF(<ReportData."DeadFlag">=1,"EU Dead Flag = 1",IIF(<ReportData."DeadFlag">=0,"EU Dead Flag = 0","EU Dead Flag = Null"))

The problem is FR displays the entire condition as a text string. Can someone show me what I am doing wrong. I have been able to use variables and System variables in text objects. Maybe I am just formatting it wrong.

Thanks in advance.
gordk
if trying to display result in a memo(text object
you kneed your [] around the whole expression.
[IIF(expression,truevalue,falsevalue)]

wink.gif
jriggs
That did it. Thank you!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.