Page 1 of 1

cannot convert from decimal to int

Posted: Fri Jul 08, 2011 4:58 am
by xeyyam
hi.

DateTime now = new DateTime( GET_TABEL_REPORTNEW.B2 , GET_TABEL_REPORTNEW.B1 , day );

B2 and B1 are int fields.

when i compile it makes such error - " cannot convert from decimal to int "

cannot convert from decimal to int

Posted: Fri Jul 08, 2011 5:32 am
by Brendan
Are B1 and B2 set as decimal fields in your data source?

What data type is day?

cannot convert from decimal to int

Posted: Fri Jul 08, 2011 5:42 am
by xeyyam
I just solved
DateTime now = new DateTime( (int)GET_TABEL_REPORTNEW.B2 , (int)GET_TABEL_REPORTNEW.B1 , day );
:)

cannot convert from decimal to int

Posted: Mon Jul 11, 2011 4:58 pm
by Ivan
Hello,

Let us know if you need any additional help.

Thank you.