unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, VisiComboBox, Unit3, l_TreiberInit,
DB, vddDataSet,
vddReferenceDataSet, vddCustomQuery, vddQuery, vddDataSource;
type
TForm1 =
class(TForm)
VisiComboBox1: TVisiComboBox;
VddQuery1: TVddQuery;
procedure FormCreate(Sender: TObject);
procedure VisiComboBox1Select(Sender: TObject);
private
var Spalten : TStringList;
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
Treibermodule.LoginDialog.Execute;
Spalten := TStringList.Create;
Spalten.Add('
AdrNr');
Spalten.Add('
AngelegtAm');
ComboBox_fuellen(VisiComboBox1, VddQuery1, Spalten, '
adress');
end;
procedure TForm1.VisiComboBox1Select(Sender: TObject);
begin
PoolData := TPoolData(VisiCombobox1.Items.Objects[VisiCombobox1.ItemIndex]);
showmessage(PoolData.var1);
end;
end.