datareader

  • Thread starter Thread starter TJS
  • Start date Start date
T

TJS

how is variable dimensioned when assigned to result returned from datareader
function

e.g.
dim dtr AS ???????
dtr = getDataReader()
 
If I understand your question right, I think it's System.Object. You mast
cast it or convert it to what it should be or what you want, respectively.

-Darrin
 
It depends on what type "getDataReader()" returns. What is
"getDataReader()"? If it returns a DataReader, then dtr should be declared
as one.

If you are unsure what type getDataReader() returns, set dtr to an object
temporarily and after the dtr assignment line, write:

response.write(dtr.getType.toString)

and this will tell you what type came back. Now, you can change the generic
object type to the specific type that came back.
 
thanks,
that works

Darrin J Olson said:
If I understand your question right, I think it's System.Object. You mast
cast it or convert it to what it should be or what you want, respectively.

-Darrin
 
Back
Top