TTable provides DBF table metadata management — it stores the table name, alias, field definitions and index list, and can create or import DBF structures. TAccTable manages Windows accelerator tables, allowing keyboard shortcuts (virtual key + modifier state) to be associated with control IDs.
TTable — DBF Table Metadata
Key DATA Members
DATA
Type
Description
cName
Character
Table file name (without extension)
cAlias
Character
Alias used when opening the table
lShared
Logical
Open table in shared mode
aFields
Array
Array of TField objects defining the structure
aIndexes
Array
Array of index definitions
Methods
Method
Description
New( cName, cAlias, lShared, cComments )
Create a new table metadata descriptor
Import( cDbfFile )
Import the field structure from an existing DBF file
Create( cPath )
Physically create the DBF file on disk from the stored field definitions
TAccTable — Accelerator Table
Key DATA Members
DATA
Type
Description
nHandle
Numeric
Windows accelerator table handle (returned by SetAccTable)
aItems
Array
Array of items, each is { nVirtKey, nVKState, nId }
Methods
Method
Description
New()
Create an empty accelerator table
Add( nVK, nState, nId )
Add an accelerator entry (virtual key + modifier state + command ID)
Del( nVK, nState )
Remove an accelerator entry by virtual key and state
Activate()
Set this accelerator table as active for the calling thread
DeActivate()
Restore the previous accelerator table (pass nil to SetAccTable)
End()
Destroy the accelerator table and deactivate it if currently active