|
-
May 14th, 2004, 04:32 AM
#1
Thread Starter
Frenzied Member
How to handle this error?
I ahve written a winforms app which has a method that is looping through a datareader and printing stuff from it...
The problem is that some values are dbnull and I want to display a message (from an exception object) to the user "column "name" in the current record is NULL, aborting!"
Hoe can I throw such an exception? And how do I check the datareader before I access it if it's null or not?
kind regards
Henrik
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
|