So you use recursion to simulate a loop (nothing wrong with that, TMTOWTDI). But you try to exit your recursion with last. And the error message just tells you that there is no loop to 'last' out of. Use return instead or as you already do just don't call Edit() again when you want to stop the recursion.
So the only thing wrong with your program is a useless 'last' that you can delete and then your program works
In reply to Re: loop problem
by jethro
in thread loop problem
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |