Page 1 of 1

Asign value in variable in VB.NET

Posted: Wed Nov 30, 2016 3:38 pm
by jserret
Hello,

How I can asign one value inside the variable in report compile to vb.net?

In c# compile i can use {Variable1 = "Hola"} but in vb.net this only compared the two string and return one boolean.


You want to be able to have variable1 assigned "hello" no compared.

Thanks

Re: Asign value in variable in VB.NET

Posted: Thu Dec 01, 2016 11:21 am
by HighAley
Hello.

Please, try to use this expression in the Before Print event of the text component.

Thank you.

Re: Asign value in variable in VB.NET

Posted: Thu Dec 01, 2016 2:05 pm
by jserret
Thanks for you answers but not work correctly, I want assign variable1 = Avg( "one colum on a table") and this exemple return me 0 and the result are not 0.

Thanks.

Re: Asign value in variable in VB.NET

Posted: Sun Dec 04, 2016 7:13 pm
by Alex K.
Hello,

Please try to use the Totals.Avg() function.

Thank you.