Вы находитесь на странице: 1из 1

sing the Interbase Components

In order to access an *.gdb file,


 Add these components - IBDatabase, IBTransaction, IBTable,
DataSource, DBGrid

IBDatabase1.DatabaseName Set this to the *.gdb or *.fdb file


IBDatabase1.Connected Set to true
IBTransaction1.DefaultDatabase Set to IBDatabase1
IBTransaction1.DefaultAction Set to TACommit
IBTransaction1.Active Set to true
IBTable1.Database Set to IBDatabase1
IBTable1.Transaction Set to IBTransaction1
IBTable1.TableName Select a table from the list.
IBTable1.Active Set to true
DataSource1.DataSet Set to IBTable1
DBGrid1.DataSource Set to DataSource1
Be sure not to set IBTable1.MasterSource to DataSource1 - if you do, you
get the following error
Circular datalinks are not allowed.
Instead of IBTable, you can use IBDataSet and set SelectSQL to
select * from CUSTOMER
Or you can use IBClientDataSet and set CommandText to the query.

Вам также может понравиться