Click to See Complete Forum and Search --> : position of current record


May 1st, 1999, 04:34 AM
hi folks
i want to know the position of the current record in the recordset
how it can be done in crecordset and in cdaorecordset
if the total record is 10 and im in the 5th record i want to get the answer as 5. is there any fn. for that

pkraman
May 1st, 1999, 04:47 AM
hi,
I don't think you can get it for CRecordSet directly. you can have a count(int) in CRecordSet and manipulate the var according to the message(i.e MoveNext means increment the count by one etc)

Regards,
Kalyan

Marco
May 6th, 1999, 03:38 PM
try the meber function
CRecordset::GetStatus( CRecordsetStatus& rStatus ) which returns a

struct CRecordsetStatus {
long m_lCurrentRecord;
BOOL m_bRecordCountFinal; };

m_lCurrentRecord tells you, what you wnat to know !