Click to See Complete Forum and Search --> : Btrieve Record Fetching >>


cdrom
March 18th, 2003, 08:17 AM
How can I retrieve a record by specifing its zero-based index. (ie. The 500th record according to key #1).

Currently, I am going around the problem by reading the first record and keep on getting the next till I reach the required record. However, this method has became less effecient since the number of records is increasing...

M Owen
March 18th, 2003, 09:23 AM
No key field? Are the records of the table of a fixed length? If so, Record # * sizeof(record) ... BTrieve ... If you have an index then you should be able to get the table offset and do a read from it ...