Re: problems with procedures in while loop
- Posted by Patrick Barnes <mrtrick at gmail.com> Nov 28, 2004
- 541 views
On Sat, 27 Nov 2004 19:16:09 -0800, Jacen <guest at rapideuphoria.com> wrote: > in my while loop below. When I trace it, it does get the input, and take > the last character off, but won't execute the exec_cmd procedure. Any > suggestions? > > }}} <eucode> > while 1 do > > input = gets(0) > if sequence(input) then > input = input[1..length(input)-1] > exec_cmd(input) > end if > > end while > </eucode> {{{ So, if you do this: while 1 do input = gets(0) if sequence(input) then trace(1) input = input[1..length(input)-1] exec_cmd(input) end if end while It'll go into trace mode? What if you put trace(1) as the VERY FIRST statement in exec_cmd? (after variable declarations) -- MrTrick