Re: How can I STOP a cursed recursion?
- Posted by Dan Moyer <danielmoyer at prodigy.net> Jun 19, 2006
- 556 views
ChrisBurch2 wrote: > > Hi > > Is your stop variable local or global - it needs to be global > > }}} <eucode> > integer stop_me > function foo() > > --do stuff > --result to break out > stop_me = 1 > > foo() > if stop_me = 1 then > > > end function > </eucode> {{{ Chris, I didn't DECLARE the stop variable as GLOBAL, but I did do it just like you did, with the stop variable outside and just before the PROCEDURE. I presume you were going to put a "return" inside the "if stop_me then", which is what I did do, but that is what isn't working. Not really knowing what I'm doing, I'm concerned that maybe recursive PROCEDURES are a no-no, that maybe they have to be FUNCTIONS??? Dan