Step 9: Get the desired record from the cursor (table)

<< Click to Display Table of Contents >>

Navigation:  Application development > Introduction to BDE programming > BDE Programming in Borland C/C++ > Basic procedure >

Step 9: Get the desired record from the cursor (table)

Previous pageReturn to chapter overviewNext page

To get a record from a table you would normally use the function DbiGetNextRecord. This will set the current record of the cursor to the record returned by this function (the next record in the table):

 

Chk(DbiGetNextRecord(

   hCur,                                  // Cursor from which to get the record.

   dbiNOLOCK,                                // Lock type

   pRecBuf,                                  // Buffer to store the record

   NULL));                                                // Record properties - don't need in this case