Examples Delphi

the simplest way to view db table data from Delphi
plonk down a TTable
set DataBaseName to name of connectable database
set TableName to name of a table within the above database
set the Active property to True
(the last thing connects you to the table even when in the IDE)
plonk down a TDataSource
set DataSet to name of TTable component
set TableName to name of a table within the above database
plonk down a TDBGrid
set DataSource to name of TDataSource component
set DataBaseName to name of connectable database
next most simple way to view db table data from Delphi
(USING A SQL QUERY)
plonk down a TQuery
set DataBaseName to name of connectable database
edit the SQL [String] field that is your actual query
set the Active property to True
(the last thing connects you to the table even when in the IDE)
plonk down a TDataSource
set DataSet to name of TQuery component
plonk down a TDBGrid
set DataSource to name of TDataSource component