|
-
Mar 10th, 2006, 11:32 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] Data type error.
Hi I am getting this error
Input string was not in correct format
when trying to assign a value from a datarow column, any ideas anyone?
VB Code:
Dim CarriageType As Integer = CInt(dr.Item("CarriageType"))
-
Mar 10th, 2006, 11:37 AM
#2
Re: Data type error.
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)
-
Mar 10th, 2006, 11:42 AM
#3
Thread Starter
Frenzied Member
Re: [RESOLVED] Data type error.
Yes I was getting the wrong field, Carriage type is a description I meant to get CarriageTypeID
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|