CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    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


  2. #2
    Join Date
    Apr 1999
    Location
    Chennai, INDIA
    Posts
    27

    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


  3. #3
    Join Date
    May 1999
    Location
    Piacenza, ITALIA
    Posts
    30

    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
  •  





Click Here to Expand Forum to Full Width

Featured