View Full Version : exit repeat (2) ?
dsdsdsdsd
01-08-2005, 12:31 PM
hello;
suppose I have:
repeat with ...
repeat with ...
exit repeat(2)
end repeat
end repeat
such that with the one "exit" statement I can "exit" out of more that one nested loop;
any thoughts?
thanks
Shannon Burnett
Asheville NC USA
As far as I know, your choices are:
exit repeat -- leaves current repeat loop (goes to next step in current handler)
exit -- leaves current handler (goes to handler that called current handler)
abort -- leaves current handler and any handler that called current handler
If you need more control than that you could set a flag that you check later and call another exit repeat at that point.
--Whit
dsdsdsdsd
01-10-2005, 01:39 PM
Whit, thanks for your response;
I was unaware of both the "exit" and the "abort"; though they will not help on this particular issue I appreciate the suggestions;
your flag idea is the way that I am going to work on;
thanks
Shannon Burnett
Asheville NC USA
vBulletin® v3.8.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.