unit mainUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, DBCtrls,
DB, IBDatabase, IBCustomDataSet, IBQuery,
IBTable, Grids, DBGrids;
type
TmainForm =
class(TForm)
IBDatabase1: TIBDatabase;
IBTransaction1: TIBTransaction;
DataSource1: TDataSource;
DBMemo1: TDBMemo;
IBQuery1: TIBQuery;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
mainForm: TmainForm;
implementation
{$R *.dfm}
procedure TmainForm.FormCreate(Sender: TObject);
begin
IBQuery1.Open;
IBQuery1.SQL.add('
Select Memo1 from pcbeinstellungendefault where zaehler = 10');
DataSource1.DataSet:= IBQuery1;
MainForm.DBMemo1.DataSource := MainForm.DataSource1;
MainForm.DBMemo1.DataField := '
MEMO1';
end;
end.