|
-
May 1st, 1999, 04:34 AM
#1
position of current record
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
-
May 1st, 1999, 04:47 AM
#2
Re: position of current record
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
-
May 6th, 1999, 03:38 PM
#3
Re: position of current record
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 !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|