G
Guest
I am using a DataReader to return my data from the Database and using
GetValue() to retrieve the values. I would like to be able to determine the
Data Type of each ccolumn so as to be able to format Dates. I have found the
GetFieldType function but am having trouble using it. Thanks for any help. My
code is below.
rdr = OracleHelper.ExecuteReader(OraConn, CommandType.StoredProcedure,
"OraPremises.PremDeviceHoldings", ps)
While (rdr.Read())
strLine = ""
For i = 0 To 35
strLine = strLine & rdr.GetValue(i).ToString() & Chr(9)
Next
objStreamWriter.WriteLine(strLine)
End While
REgards
Amelia
GetValue() to retrieve the values. I would like to be able to determine the
Data Type of each ccolumn so as to be able to format Dates. I have found the
GetFieldType function but am having trouble using it. Thanks for any help. My
code is below.
rdr = OracleHelper.ExecuteReader(OraConn, CommandType.StoredProcedure,
"OraPremises.PremDeviceHoldings", ps)
While (rdr.Read())
strLine = ""
For i = 0 To 35
strLine = strLine & rdr.GetValue(i).ToString() & Chr(9)
Next
objStreamWriter.WriteLine(strLine)
End While
REgards
Amelia