两次执行循环有关问题
两次执行循环问题?
------解决方案--------------------
就是用First,应该不会出现死循环,看下是不是你用 with do 导致的
还是你while中有用到Continue?如果有用,Continue上面加句Next;
------解决方案--------------------
first不要注释掉!
if not eof then
begin
while not eof do
begin
...
next;
end;
//再次执行while循环,这个位置该如何处理
//first; 好像sql死循环了
while not eof do
begin
...
next;
end;
end;
两次循环
------解决方案--------------------
就是用First,应该不会出现死循环,看下是不是你用 with do 导致的
还是你while中有用到Continue?如果有用,Continue上面加句Next;
------解决方案--------------------
first不要注释掉!