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!
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.