BtrvUpdate

Prev Next Home Home Table Of Contents Index

BtrvUpdate (DataVar,Handle)

BtrvUpdate changes a record in the data file at the last location accessed with any command that reads a record. The data is passed in the array DataVar. If key fields are used, or if you are using traditional style fixed-length fields, then the first elements of the array must match the data structure of the file you defined with BtrvCreate. All elements of the array after these fields are written to the variable-length part of the file. The variable length part can contain MarxMenu multi-dimensional data structures.


Example:
BtrvGetEqual(DataVar,'MARC PERKEL',1,Handle) if BtrvResult = 0 DataVar[3] = 37 BtrvUpdate(DataVar,Handle) endif

Result Codes: 5 - Duplicate Key 7 - Different Key 10 - Modifiable Key Value Error 80 - Conflict

Category: Btrieve

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home