T TJS Nov 16, 2003 #1 how is variable dimensioned when assigned to result returned from datareader function e.g. dim dtr AS ??????? dtr = getDataReader()
how is variable dimensioned when assigned to result returned from datareader function e.g. dim dtr AS ??????? dtr = getDataReader()
D Darrin J Olson Nov 17, 2003 #2 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
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
S Scott M. Nov 17, 2003 #3 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.
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.
T TJS Nov 17, 2003 #4 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 Click to expand...
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 Click to expand...