Click here to Skip to main content
15,798,826 members
Home / Discussions / C#
   

C#

 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
kevinnicol3-Jan-12 4:46
kevinnicol3-Jan-12 4:46 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 5:10
__John_3-Jan-12 5:10 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 5:18
Dan Mos3-Jan-12 5:18 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 5:24
__John_3-Jan-12 5:24 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 5:26
Dan Mos3-Jan-12 5:26 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 5:35
__John_3-Jan-12 5:35 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 5:41
Dan Mos3-Jan-12 5:41 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 6:22
__John_3-Jan-12 6:22 
Hi Dan,

Using the indexer, casting to an int always works and casting to a string always fails (invalid cast).

So the behavour is predictable and my problem 'kind of' goes away. So for now I will use the indexer and not use the Get???? methods.

@PIEBALDconsult: You mentioned indexers earlier but I was not sure what you were getting at. Turns out you were on to something. Thanks.
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 8:08
Dan Mos3-Jan-12 8:08 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
PIEBALDconsult3-Jan-12 5:00
professionalPIEBALDconsult3-Jan-12 5:00 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 5:31
Dan Mos3-Jan-12 5:31 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 5:38
__John_3-Jan-12 5:38 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 5:44
Dan Mos3-Jan-12 5:44 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 5:58
__John_3-Jan-12 5:58 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 6:06
Dan Mos3-Jan-12 6:06 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 5:53
Dan Mos3-Jan-12 5:53 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 6:02
__John_3-Jan-12 6:02 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos3-Jan-12 6:09
Dan Mos3-Jan-12 6:09 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
__John_3-Jan-12 6:29
__John_3-Jan-12 6:29 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Luc Pattyn3-Jan-12 6:50
sitebuilderLuc Pattyn3-Jan-12 6:50 
GeneralRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
PIEBALDconsult4-Jan-12 14:41
professionalPIEBALDconsult4-Jan-12 14:41 
QuestionRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Dan Mos7-Jan-12 13:07
Dan Mos7-Jan-12 13:07 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
PIEBALDconsult7-Jan-12 14:22
professionalPIEBALDconsult7-Jan-12 14:22 
AnswerRe: OdbcDataReader calling IsDBNull changes the behaviour of Get methods Pin
Ennis Ray Lynch, Jr.3-Jan-12 8:41
Ennis Ray Lynch, Jr.3-Jan-12 8:41 
QuestionDeployment Pin
arkiboys3-Jan-12 3:52
arkiboys3-Jan-12 3:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.