Page 1 of 1

a Question for Variable

Posted: Tue Oct 12, 2010 8:10 pm
by RickyHuang
in build 2010.2.792.0

i have a variable in report,name is "BegDate" and it is a datetime
i have a control in vb form,name is TwBegDate,it's value is a datetime

my code in vb.net

with rpt
.Dictionary.Variables("BegDate").Value = CDate(TwBegDate.Value)
end with

it can work

but

when i upgrad to 2010.2.800.0

i got an error
『Variable value '2010/10/13 上午 09:12:54'』 is wrong DateTime value

how to fix this error?

a Question for Variable

Posted: Wed Oct 13, 2010 2:25 am
by Alex K.
Hello,

Please try check the following code

Code: Select all

With rpt
 .Item("BegDate") = CDate(TwBegDate.Value)
End With
Thank you.