Purpose
Strongly typed class that handles I/O to Btrieve Tables
Prototype
CLASS BtTable
Access
ClientId | Get the client Id that was used to open this table |
CurrStruct | Name of current active structure definition |
DataPtr | Pointer to the databuffer of the table. |
Deleted | Is the current record deleted ? |
FileName | Filename (possibly including path) of the open table |
Found | Was the last seek succesfull |
LockList | Array of currently locked records |
Open | Is the table (Still) open |
OpenMode | Openmode used when opening the table |
OrderKeyNo | Relative position in the current index (approx.) |
RecCount | Returns the number of records in the table |
Recno | Current record number |
Assign
Method
Append() | Append a blank record to the table |
ClearOrderScope() | Set or clear the boundaries for scoping key values in the controlling order. |
Delete() | Mark the current record for deletion |
FieldGet() | Get the contents of a field that is identified by its position. |
FieldName() | Return the name of a specified field as a string. |
FieldPos() | Position of a specified field within the data server |
FieldPosSym() | Position of a specified field within the data server |
FieldPut() | Set the value of a field identified by its position. |
Goto() | Position the data server at a specified record number. |
GoTop() | Position the table at the first record. |
OrderScope() | Get/Set the boundaries for scoping key values in the controlling order. |
Recall() | Remove the deletion flag from the current record |
Refresh() | Reread the current record from the database |
RLock() | Try to lock a record in the open table |
Seek() | Seek in the VO/Style with Softseek functionality |
SeekEq() | Find a record with an exact match to the given key(s) |
SeekGE() | Find a record with a key value greater then or equal to the key(s) given |
SeekGT() | Find a record with a key value greater than the key given |
SeekLE() | Find a record with a key value smaller or equal to than the key given |
SeekLT() | Find a record with a key value smaller than the key given |
SetOrder() | Change the index order for the given server |
Setstruct() | Activate alternative structure for open table |
Skip() | Move record pointer for table |
Unlock() | unlock a record, or all records in the open table |
Description
This class is used to access and read/write Btrieve tables The class is fully strongly typed, so that the best performance can be achieved.
Error handling in this class is minimal. Most methods return a logical value to indicate failure or success. If you want to open a btrieve table on a datawindow you should use the BtServer class in stead
See Also
BtIndex, BtField, BtSegment, BtServer