Index
Turbo Database
TurboDB Tools
TurboDB Components
TTdbDataSet
TTdbTable
TTdbBatchMove
Frequently Asked Questions
TurboDB Components is a set of Delphi components for incorporating easy, fast and reliable database functions into Web applications. The current version is available at http://www.dataweb.de/download/tdbcomponents.html.
Derived from TDataSet TTdbDataSet implements all methods necessary to access TurboDB tables. You will never instantiate a TTdbDataSet object directly but rather use one of its descendants TTdbTable or TTdbQuery (the latter is still in development).
Enables you to access a TurboDB database table, to browse the table, to edit insert and delete records, to filter records, to locate specific records, to view records in an order defined by an index and to see records linked to the current record in a master table.
You can use the TTdbTable class very much as you are used to with TTable. You may link datasources to it and view the table content in all sorts of database aware controls like TDbEdit, TDbGrid a.s.o. Yet there are some points to consider:
This class is used for importing into and exporting from a TurboDB table. It is very similar to the TBatchMove component you know from the BDE components but uses a file rather than a table as the source/destination for import/export.
TdbTable | The TdbTable object that is involved in the batch move. | ||||||||||||||||||
FileName | The table file that is involved in the batch move. | ||||||||||||||||||
Direction | Indicates if the batch move is to import records from the file into the table or to export records from the table into an file. bmdImport always means that records from the file are appended to the table. Export creates a new file containing all records of the table satisfying the filter condition. | ||||||||||||||||||
FileType | The format of the file the records are imported from or exported to.
If you want to use the values of this enumeration type dynamically in your program you will have to use
the unit TdbTypes.
| ||||||||||||||||||
ExportColumnNames | First record in output contains column names for export | ||||||||||||||||||
Filter | Must contain valid TurboDB search-condition like filter in TTdbTable, exports/imports only records satisfying filter | ||||||||||||||||||
Mappings | A list of field assignments used in the import to control the column mapping. An entry in this list is of the form <TargetColumnName>=<SourceColumnName>, where <TargetColumnName> is the name of a column in the TurboDB table you are importing into and <SourceColumnName> is the name of a column in the source table your are importing from. You should use the (one-based) column index for <SourceColumnName>, e.g. Name=#1, Age=#8, City=#98. |
Execute | Executes the batch move using the properties set |
OnProgress | Fired every once in a while during batch move. Use OnProgress to show a progress bar. |
Last updated on 6/2/2000. Copyright (c) 2000 by dataWeb GmbH, Aicha, Germany. Turbo Database and TurboDB Components are products by dataWeb - the manufacturers of RAD tools for the Web. Please send your hints, questions and comments to Peter Pohmann.