Asign value in variable in VB.NET

Stimulsoft Reports.NET discussion
Post Reply
jserret
Posts: 23
Joined: Mon May 09, 2016 10:51 am

Asign value in variable in VB.NET

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Asign value in variable in VB.NET

Post by HighAley »

Hello.

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

Thank you.
jserret
Posts: 23
Joined: Mon May 09, 2016 10:51 am

Re: Asign value in variable in VB.NET

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Asign value in variable in VB.NET

Post by Alex K. »

Hello,

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

Thank you.
Post Reply