L
locka
Unregistered / Unconfirmed
GUEST, unregistred user!
1:////table4 have 7 records
table4.open
table4.First;
while not Table4.Eof do
begin
Table4.Delete;
Table4.Next;
end;
ShowMessage(inttostr(table4.RecordCount));/////// it's '7'
×××××××××××××××××××××××××××××
2: table4.open;
for i:=0 to Table4.RecordCount-1 do
begin
Table4.Delete;
end;
ShowMessage(inttostr(table4.RecordCount));///it's '0'
为什么会出现;这种情况,方法1为什么不能清空adotable,另外有什么好的方法可以清空adotable
table4.open
table4.First;
while not Table4.Eof do
begin
Table4.Delete;
Table4.Next;
end;
ShowMessage(inttostr(table4.RecordCount));/////// it's '7'
×××××××××××××××××××××××××××××
2: table4.open;
for i:=0 to Table4.RecordCount-1 do
begin
Table4.Delete;
end;
ShowMessage(inttostr(table4.RecordCount));///it's '0'
为什么会出现;这种情况,方法1为什么不能清空adotable,另外有什么好的方法可以清空adotable