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
Printable View
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
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
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 !