السلام عليكم ورحمة الله
مبدئيا:
قم بمحاولة ونصححها
مبدئيا:
كود :
procedure ImportDataSet(dsSource, dsDest: TDataSet);
var
I: Integer;
begin
dsSource.DisableControls;
dsDest.DisableControls;
try
dsSource.First;
while not dsSource.Eof do begin
dsDest.Append;
for I := 0 to dsSource.FieldCount-1 do
dsDest.FieldByName(dsSource.Fields[I].FieldName).Value := dsSource.Fields[I].Value;
dsSource.Next;
end;
if dsDest.State in [dsEdit, dsInsert] then
dsDest.Post;
finally
dsSource.EnableControls;
dsDest.EnableControls;
end;
end;
اللهم احقن دماء المسلمين، لا تنسوهم بالدعاء...


![[-]](https://delphi4arab.net/forum/D4A2020/collapse.png)