Specified cast is not valid.
Posted by: Shawn Berg
Date: May 18, 2007 12:33PM

Here's my code:

== BEGIN
Dim owner_id As Nullable(Of Integer)

owner_id = dr("sp_id")
== END

The value of the sp_id field for this record that is generating this error is NULL. I thought using a Nullable type would resolve this issue but it hasn't. Any suggestions?

Options: ReplyQuote


Subject
Written By
Posted
Specified cast is not valid.
May 18, 2007 12:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.