Step Eight Position the record point on the appropriate record

This step introduces some new vernacular to the developer's vocabulary in the use of the word "crack." Cracks are the imaginary lines that separate each record in a database. Using this terminology allows you to envision the record pointer being positioned before the first record in a table or after the last. You can also place it between two records, committed to neither. Use the DbiSetToBegin function to set the pointer to the "crack" before the first record:

DbiSetToBegin(hCur)

282 ■ Part III—The Well-Rounded Application

Crack semantics also lets you use a single method to access all records in the table by using DbiGetNextRecord.

Was this article helpful?

0 0

Post a comment