Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

start broswe

Status
Not open for further replies.

ceeja

Programmer
May 22, 2003
1
US
Suppose we issue a start browse command and then a read next and then a read previous and then again a read next ..on which record are we now?..this is aminly to know where exactly the start browse gets positioned .
 
you are at the same place where you started! start sets the ponter to 1st rec. read next actually reads it (and re-positions the pointer to 2nd rec). ReadPrev reads 1st rec again by repositioning pointer. Now we are at the start; so next read-next reads 1st rec!
 
ceeja,

start sets the pointer to the record.

READ NEXT reads the record and sets the pointer to the next record.

Issuing the READ PREVIOUS will read the same record again, as it's the record previous to the pointer. This effectively puts you back you your start position as regards the pointer.

Not surprisingly, the next READ NEXT reads the same record for a third time.

Cheers
Greg


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top