|
-
Aug 20th, 2008, 12:20 AM
#1
Thread Starter
Lively Member
StrongTypingException = DBNULL problem
I have a strongly typed dataset which I assign its value to my variables. There are fields in the data which I allow null (leave blank). I keep getting a StrongTypingException because of DBNULL value. Is there away for me to code it so that to say "yes it is ok to have some value to be null?"
I have a lot of variables which I need to set value to from the dataset so to write try and catch for each of my variables could be very messy but if there is no other way then that is what I have to do. Thank you for anyone help.
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
|