procedure TForm1.Button1Click(Sender: TObject); var oname:string; begin adotable1.Active :=true; adotable1.First ; while not adotable1.eof do begin oname:= adotable1['名称'];//.asstring; label1.caption:=oname; adotable1.Edit; adotable1['名称']:=combobox1.Text +'|'+oname; adotable1.Post; oname:='; adotable1.Next ; end;
end;
procedure TForm1.FormCreate(Sender: TObject); begin ADOConnection1.GetTableNames(combobox1.Items, False); end;
procedure TForm1.ComboBox1Select(Sender: TObject); begin adotable1.Active :=false; adotable1.TableName :=combobox1.Text;
end;
procedure TForm1.Button2Click(Sender: TObject); begin adotable1.Active :=true; end;