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.
"TJS" <no****@here.com> wrote in message
news:eD**************@TK2MSFTNGP11.phx.gbl...
how is variable dimensioned when assigned to result returned from
datareader function
e.g.
dim dtr AS ???????
dtr = getDataReader()