Appendix B. C Mobile Application Development

   

"DBTask" Example Applications

A few examples are found under the Examples/DBTask folder where C++Builder is installed. These are identified and briefly described in Table A.9.

Table A.9. DBTasks Example Applications

Folder

Description

BkQuery

Demonstrates how to perform a background query on an SQL database using threads.

CachedUp

This example demonstrates how cached updates can be used in conjunction with live data using the BDE and nonlive data using the UpdateSQL component. Requires Interbase Server.

Contacts

An example app demonstrating how customer orders are managed using TQuery , TTable , and TDataSource . (See Figure A.7 for an illustration of this example.)

Figure A.7. The Contacts database application.

graphics/apafig07.jpg

CSDemos

An example Internet Client application. Requires Interbase Server and SQL Links.

CtrlGrid

A simple app, which displays database fields in a grid using TDBGrid , TDBCtrlGrid , TDBNavigator , and TDBEdit .

DBErrors

An example that demonstrates how to use Data Modules to centralize coding. Includes a one-to-many form and illustrates how to trap and control database errors.

Filter

An application that demonstrates how to filter records using a Data Module with a Query linked through a Datasource. Uses TDBGrid and TDBNavigator .

Find

Demonstrates how to find records in a database. Uses TDBNavigator , TDataSource , and TDBGrid .

FishFact

An example application that accesses a database of fish facts. Uses TDBImage , TDataSource , TDBGrid , and TDBText . (See Figure A.8 for an illustration of this example.)

Figure A.8. The FishFact database application.

graphics/apafig08.jpg

Gds

The Global Dive Supply example that shows two views of data and filter capabilities. Uses TDataModule , TDataSet , and TDBGrid .

GDSDemo

Another Global Dive Supply example that uses TTable , TDatabase , TDataSource , TDBNavigator , and much more. A bit more sophisticated than Gds.

IBDemo

An application that demonstrates how to use InterBase event alerts.

LookUp

Demonstrates how to use lookup fields and calculated fields using TDBNavigator , TDBGrid , TdataSource , and TCurrencyField .

MastApp

A very sophisticated database example that uses QuickReports with multiple data. Uses TTable , TDataSource , TQuery , TDataBase , TQuickReport , and more.

MstPool

Demonstrates how to pool database objects and measure the amount of time needed to open and close a database connection.

NavMDI

An MDI database example that uses TDBNavigator , TDataSource , TDBGrid , and more.

NavSDI

A multiform SDI database example that uses TDBNavigator , TDataSource , TDBGrid , and more.

NDXBuild

Shows how to build indexes for database tables using TTable , and more.

QBFDemo

Demonstrates how to enable users to define their own queries. Uses TDBGrid , TDBNavigator , and TDataSource .

QJoin

Demonstrates how to join two tables by using an SQL query. Uses TQuery , TDataSource , and TDBGrid .

QuickRpt

Demonstrates how to use QuickReport types for viewing and printing. Uses TQuickRep , TQRGroup , TQRExpr , TQRDetailLink , and much more. (See Figure A.9 for an illustration of this example.)

Figure A.9. The QuickRpt print preview.

graphics/apafig09.jpg

TextData

Demonstrates how to create and use a DataSet component to work with text files. Uses TDataSet .


   
Top


C++ Builder Developers Guide
C++Builder 5 Developers Guide
ISBN: 0672319721
EAN: 2147483647
Year: 2002
Pages: 253

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net