S
Scott Shuster
Hi,
I'm having some strange problems in VS employing a DataReader. Here's
a small snippet of the code:
....
objDR = objCMD.ExecuteReader()
If objDR.Read() Then
(true stuff)
Else
(false stuff)
End If
....
For some reason, I'm getting to the Read() statement in debug mode and
it's showing 'True', but then it branches right to the (false) code.
If you think that's strange, here's where it gets worse. I get
different results if I execute it straight through, as opposed to
stepping through it line-by-line.
Has anyone else seen strange results in VS, using a DataReader, and
debugging?
Thanks,
Scott Shuster
(e-mail address removed)
I'm having some strange problems in VS employing a DataReader. Here's
a small snippet of the code:
....
objDR = objCMD.ExecuteReader()
If objDR.Read() Then
(true stuff)
Else
(false stuff)
End If
....
For some reason, I'm getting to the Read() statement in debug mode and
it's showing 'True', but then it branches right to the (false) code.
If you think that's strange, here's where it gets worse. I get
different results if I execute it straight through, as opposed to
stepping through it line-by-line.
Has anyone else seen strange results in VS, using a DataReader, and
debugging?
Thanks,
Scott Shuster
(e-mail address removed)