Fundamentals of Btrieve API Programming
The following flow charts demonstrate which Btrieve operations to use in your applications to insert, update, and delete records. For more detailed information about APIs, refer to the
Btrieve API Guide
.
Btrieve API Flow Chart
Inserting Records
1
OPEN (0)
2
INSERT (2) to add record (repeat)
3
CLOSE (1) file
4
STOP (25) to release resources
Updating Records
1
OPEN (0)
2
GET EQUAL (5) or some other single-record retrieval operation to find existing record and establish physical currency
3
Modify record
4
UPDATE (3)
5
CLOSE (1)
6
STOP (25) to release resources
Deleting Records
1
OPEN(0)
2
GET EQUAL(5) or some other single-record retrieval operation to find existing record and establish physical currency
3
DELETE(4)
4
CLOSE(1)
5
STOP (25) to release resources