Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Lewis Evans   on Jan 06 In Asp.net Category.

  
Question Answered By: Muriel Dunn   on Jan 06

.read is essentially a .movenext + a check for EOF combined into one.

IF obj DataReader.read()

positions you on record  #1 if there is 1.


While objDataReader.Read()

resForTitle = objDataReader("mHeader")

End While

the read  at TOP OF LOOP positions you on record #2.

Thus it needs to rewritten as:

DO
resForTitle = objDataReader("mHeader")

LOOP while objdataReader.read()

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on objDataReader true\false Or get search suggestion and latest updates.


Tagged: