|
<< Click to Display Table of Contents >> Step 8: Position the cursor on the desired record |
![]() ![]()
|
Use the function DbiSetToBegin to position the cursor on the "crack" before the first record in the table.
Crack semantics allow you to set the current cursor position to a point just before the first record, between records, or after the last record. One advantage of crack semantics is that it lets you use a single function to access all records in a table. For example, rather than using DbiGetRecord the first time, and DbiGetNextRecord each subsequent time, you can use DbiGetNextRecord to get all records in a table.
Chk(DbiSetToBegin(hCur)); // Position the specified cursor to the crack
// before the first record.