This problem has annoyed me for a while now and I'd like to find a solution. I have a function that creates an ODBCDataReader. I put the code in a try block to capture any problems with the query. I get a warning that it "doesn't return a value on all code paths." That is correct because if there is an exception then the datareader is not filled.
What should I return in this case?
Can I create an empty datareader or a null device?
Thanks,
Bernie
What should I return in this case?
Can I create an empty datareader or a null device?
Thanks,
Bernie
Last edited: