D
dialog1
Unregistered / Unconfirmed
GUEST, unregistred user!
在三層中的
procedure Tservers.inv;
var
CDS:TClientDataSet;
begin
CDS:=TClientDataSet.Create(self);
CDS.FieldDefs.Add('UD001',ftString,20,false);
CDS.CreateDataSet;
DSP.DataSet:=CDS;
CDS.Append;
CDS.FieldByName('UD001').AsString:='aaa';
CDS.Append;
CDS.FieldByName('UD001').AsString:='bbb';
CDS.Post;
CDS.Append;
CDS.FieldByName('UD001').AsString:='ccc';
CDS.Post;
為何在應用端隻有一筆資料:'ccc'?
procedure Tservers.inv;
var
CDS:TClientDataSet;
begin
CDS:=TClientDataSet.Create(self);
CDS.FieldDefs.Add('UD001',ftString,20,false);
CDS.CreateDataSet;
DSP.DataSet:=CDS;
CDS.Append;
CDS.FieldByName('UD001').AsString:='aaa';
CDS.Append;
CDS.FieldByName('UD001').AsString:='bbb';
CDS.Post;
CDS.Append;
CDS.FieldByName('UD001').AsString:='ccc';
CDS.Post;
為何在應用端隻有一筆資料:'ccc'?