Syntax error at before print event

Stimulsoft Reports.NET discussion
Post Reply
FritschD
Posts: 8
Joined: Wed Jul 09, 2008 2:16 pm
Location: Germany

Syntax error at before print event

Post by FritschD »

Hi!

I would like to work with the variable "Status" in a before print event.
If the {Requirements._Status} contains the value "zu erledigen", the variable status should be filled with a "X" otherwise the variable Status should be empty.
I tried this:

if Requirements._Status = "zu erledigen"
Status = "X";
else
Status = "";

but alsways got an syntax error :-(
How should I modify the code, so that it will work as expected?

Thanks for your help!
Dirk
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Syntax error at before print event

Post by Edward »

Hi Dirk,

Please modify your code as follows:

Code: Select all

if (Requirements._Status == "zu erledigen")
Status = "X";
else
Status = "";
Thank you.
FritschD
Posts: 8
Joined: Wed Jul 09, 2008 2:16 pm
Location: Germany

Syntax error at before print event

Post by FritschD »

Thanks for your fast help!
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Syntax error at before print event

Post by Edward »

Hi Dirk,

Please let us know if any additional help is required.

Thank you.
Post Reply