Hi I am getting this error
when trying to assign a value from a datarow column, any ideas anyone?Quote:
Input string was not in correct format
VB Code:
Dim CarriageType As Integer = CInt(dr.Item("CarriageType"))
Printable View
Hi I am getting this error
when trying to assign a value from a datarow column, any ideas anyone?Quote:
Input string was not in correct format
VB Code:
Dim CarriageType As Integer = CInt(dr.Item("CarriageType"))
is carriagetype infact a numeric value? make sure you aren't reading a null field or something
or try
Dim CarriageType As Integer = CInt(dr.Item("CarriageType").ToString)
:blush: Yes I was getting the wrong field, Carriage type is a description I meant to get CarriageTypeID :blush: