For next 和if then当 if语句条件合适then语句被执行的第一次就退出循环 该怎么

2025-03-11 07:54:06
推荐回答(1个)
回答1:

For(循环条件)

if(条件) then

exitfor

end if

next

使用exitfor语句退出for..next循环,使用exitdo语句退出do..loop循环