Basic Btrieve API Programming
Chapter contents
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 API Programmer's Reference.
Btrieve API Flow Chart
‰ Inserting Records
- OPEN (0)
- INSERT (2) to add record (repeat)
- CLOSE (1) file
- STOP (25) to release resources
‰ Updating Records
- OPEN (0)
- GET EQUAL (5) or some other single-record retrieval operation to find existing record and establish physical currency
- Modify record
- UPDATE (3)
- CLOSE (1)
- STOP (25) to release resources
‰ Deleting Records
- OPEN(0)
- GET EQUAL(5) or some other single-record retrieval operation to find existing record and establish physical currency
- DELETE(4)
- CLOSE(1)
- STOP (25) to release resources