then
var
tmpClientDataSet:TClientDataSet;
begin
...
tmpClientDataSet:=TClientDataSet.Create(nil);
with tmpClientDataSet do
begin
databasename:=...
provider='tmpprovider';
用 DBEdit1.DataField="htbh";的确可以。
但
procedure TForm1.DBEdit2KeyPress(Sender: TObject; var Key: Char);
begin
if Key= #13 then
begin
Key:=#0;
c1.edit;
c1.Post ;
c1.Append ;