Board index » delphi » Save cursorposition in a dataset

Save cursorposition in a dataset

Hi,
using TAdoStoredProc.RecNo i can find out the numer of the record, where the
cursor is at the moment. Can i set the cursor to a special record using a
number to specify the position?
I mean if the cursor was at the 8th record and i open the TAdoStoredProc-
object again, i want the cursor to be at the same record (the 8th record).

--
Best regards
Gerhard Kashofer
ESA Elektro- Automation GesmbH

 

Re:Save cursorposition in a dataset


Quote
>using TAdoStoredProc.RecNo i can find out the numer of the record, where the
>cursor is at the moment. Can i set the cursor to a special record using a
>number to specify the position?

Recno is a read and write property.  Try setting
AdoStoredProc.RecNo := 8;
Of course it may not be the same record in the 8th row after you requey.

--
Brian Bushay (TeamB)
Bbus...@NMPLS.com

Other Threads