Page 1 of 1

Expression in Text box causes error

Posted: Sat Mar 07, 2015 6:09 pm
by Crispy Rice
Hi

I have a Data Band with a Text box and the following expression:

Code: Select all

{ IIF( {Results.Questions.Question_1 = "Red" } , "-20" , "0")  }
It always causes the following C# line to error

Code: Select all

 return StiMvcMobileViewer.GetReportSnapshotResult(HttpContext, stiReport);
The error is :

Code: Select all

stimulsoft error cs1513: } expected
If i remove the express this error goes away.

Please help.

Thanks,

Chris

Re: Expression in Text box causes error

Posted: Mon Mar 09, 2015 5:46 am
by Alex K.
Hello,

Please try to use the following code:

Code: Select all

{IIF(Results.Questions.Question_1 == "Red", "-20" , "0")}
Thank you.

Re: Expression in Text box causes error

Posted: Wed Mar 11, 2015 3:15 pm
by Crispy Rice
Thanks that worked :)

Re: Expression in Text box causes error

Posted: Wed Mar 11, 2015 6:13 pm
by Andrew
Hello,

Great! Have a nice day!