B
Ben
Hi,
I'm just moving to VB.NET and I'm trying to load a recordset intoan XMLReader and loop through the records. When I use the.ReadElementString() method to get the next 'record' if it hasreached the last record (eof) it fails with "Invalid attempt toread when reader is closed". It doesn't seem capable of findingthis out until the error has occured though (Readstate isinteractive prior to the failure and EOF is false.)
Is this limited information enough for anyone to tell me whereI'm going wrong ? (currently as I'm in the early stages I haveif err.number = 5 then err.clear which is a bit crap so ...)
Thanks,
Ben.
I'm just moving to VB.NET and I'm trying to load a recordset intoan XMLReader and loop through the records. When I use the.ReadElementString() method to get the next 'record' if it hasreached the last record (eof) it fails with "Invalid attempt toread when reader is closed". It doesn't seem capable of findingthis out until the error has occured though (Readstate isinteractive prior to the failure and EOF is false.)
Is this limited information enough for anyone to tell me whereI'm going wrong ? (currently as I'm in the early stages I haveif err.number = 5 then err.clear which is a bit crap so ...)
Thanks,
Ben.