C
cqjoe
Unregistered / Unconfirmed
GUEST, unregistred user!
请教:连接Paradox数据库时 for i:=2 to dm1.query2.RecordCount+1 do 语句 可以正确执行,但连接SQL Server不能正确执行,dm1.query2.RecordCount+1应如何改?
例子:
workbook:=eclapp.workbooks.open(xlsfilename);
for i:=2 to dm1.query2.RecordCount+1 do { Paradox数据库可以执行,但SQL Server不行,dm1.query2.RecordCount+1应如何改?}
begin
eclapp.cells(i,1):=dm1.query2.FieldByName('dwname').asstring;
workbook.save;
dm1.query2.Next;
end;
workbook.save;
例子:
workbook:=eclapp.workbooks.open(xlsfilename);
for i:=2 to dm1.query2.RecordCount+1 do { Paradox数据库可以执行,但SQL Server不行,dm1.query2.RecordCount+1应如何改?}
begin
eclapp.cells(i,1):=dm1.query2.FieldByName('dwname').asstring;
workbook.save;
dm1.query2.Next;
end;
workbook.save;