Step 6: Get the properties of the table

<< Click to Display Table of Contents >>

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

Step 6: Get the properties of the table

Previous pageReturn to chapter overviewNext page

To get record information from the table, you need to determine the size of the record buffer. You can obtain this information from the cursor by using the function DbiGetCursorProps. The Cursor properties include information on the table name, size, type, number of fields, and record buffer size. You can find more information on cursor properties in CURProps.

 

CURProps                curProps;                                // Properties of the cursor

 

Chk(DbiGetCursorProps(

   hCur,                                                  // Handle to the cursor

   &curProps));                                                // Properties of the cursor (table)                

 

curProps.iRecBufSize contains the size of the record buffer.