Y
yie28658340
Unregistered / Unconfirmed
GUEST, unregistred user!
有谁用过Delphi6指南中21章三层中更新单元的,第756页的
我用的是中层ADO,客户端用DCOM
客户端出错,客户端执行到下面出错
procedure reconciledeltas(const cdsarray:array of Tclientdataset;
vdeltaarraylevariant);
var
bReconcile:boolean;
i:integer;
lowCDS,HhighCDS:integer;
begin
lowcds :=low(cdsarray);
highcds:=high(cdsarray);
bReconcile := false;
for i:= lowcds to highcdsdo
if not varisnull(vDeltaarray) then
//出错提示'Invalid argument'
begin
cdsarray.reconcile(vDeltaarray);
bReconcile :=true;
break;
end;
if not bReconcile then
for i:=highcdsdo
wnto lowcdsdo
begin
cdsarray.reconcile(vdeltaarray);
cdsarray.refresh;
end;
end;
end;
我用的是中层ADO,客户端用DCOM
客户端出错,客户端执行到下面出错
procedure reconciledeltas(const cdsarray:array of Tclientdataset;
vdeltaarraylevariant);
var
bReconcile:boolean;
i:integer;
lowCDS,HhighCDS:integer;
begin
lowcds :=low(cdsarray);
highcds:=high(cdsarray);
bReconcile := false;
for i:= lowcds to highcdsdo
if not varisnull(vDeltaarray) then
//出错提示'Invalid argument'
begin
cdsarray.reconcile(vDeltaarray);
bReconcile :=true;
break;
end;
if not bReconcile then
for i:=highcdsdo
wnto lowcdsdo
begin
cdsarray.reconcile(vdeltaarray);
cdsarray.refresh;
end;
end;
end;