Page 1 of 1

Variable Question

Posted: Thu May 10, 2007 2:16 am
by EDV Gradl
In my code I set several variables like this:

myreport["MyVar"] = true;

It is possible to determine is MyVar actually exists in the report?

Thanks!

Variable Question

Posted: Thu May 10, 2007 3:32 am
by Vital
You can use following code:

Code: Select all

if (report.IsVariableExist("MyVar"))...
or

Code: Select all

if (report.Dictionary.Variables.IndexOf("MyVar") != -1)...
Thank you.

Variable Question

Posted: Fri May 11, 2007 3:26 am
by EDV Gradl
Somehow the first version does work right. But only after compiling the report, when loading as a dll it works.

report.IsVariableExist("MyVar") is false and

report.Dictionary.Variables.IndexOf("MyVar") is 3

Seems to be a bug to me.

Thanks!

Marco

Variable Question

Posted: Fri May 11, 2007 5:50 am
by Vital
Problem fixed. Thank you.

Variable Question

Posted: Tue May 15, 2007 9:47 am
by EDV Gradl
Irgnore this one and look under topic Big Problems with report.show