头痛!问题出在哪里?!
我是这样:
---------------------------------------------
procedure TForm1.FormCreate(Sender: TObject);
table1.Active :=false;
table1.Active :=true;
dbcombobox1.items.clear;
while not Table1.Eof do begin
DBComboBox1.Items.Add(Table1.FieldByName('dydj').AsString);
Table1.Next;
end;
end;
procedure TForm1.DBComboBox1Change(Sender: TObject);
begin
//edit1.Text :=dbcombobox1.text
edit1.text:=dbcombobox1.items.strings[dbcombobox1.itemindex];
end;
------------------------------
(因不想误改数据故将table1设为readonly)
在edit1中却无法显示我选的值。