如何退出当前循环进入下一个循环?(100分)

  • 主题发起人 hxiaomin888
  • 开始时间
H

hxiaomin888

Unregistered / Unconfirmed
GUEST, unregistred user!
我在for循环中,我想在循环中遇到某值后不进行该循环,而进入下一个循环.如:
for i =1 to 10
begin
if i=3 then
//退出循环,进入i=4循环
else
begin
//循环语句
end;
end;
我知道中断循环的语句是break,但是要跳出某一循环而进入下一循环是什么命令?
 
用continue
 
我知道while有个LOOP,不知道FOR中用行不行,没试过
 
faint~ Continue!!!
 
谢谢,Continue可以实现
 
多人接受答案了。
 

Similar threads

S
回复
0
查看
745
SUNSTONE的Delphi笔记
S
S
回复
0
查看
693
SUNSTONE的Delphi笔记
S
S
回复
0
查看
952
SUNSTONE的Delphi笔记
S
S
回复
0
查看
775
SUNSTONE的Delphi笔记
S
顶部