|
Hi
Alan,
I've
written many recursive algorythms and it sounds like you're on the right
track.
The
first time you call the method put the results into a local scope array. On
subsequent calls add rows to the array, either at the beginning of the array or
at the end depending on how you want them ordered. A simple IF tag
should do. IF numrows > 0 addRows ELSE assign the
array.
You
may also want to add a check to prevent an infinite loop.
<@assign local$level <@calc 'sum(1
@@local$level)'>>
then
if local$level > 25 don't call the method again, and throw an error or build
some exception handler to deal with it.
Dave
Shelley
PS. It
was nice to meet you at the conference.
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf |
Title: Message
- Witango-Talk: Witango 5 and recursion Alan Wolfe
- Re: Witango-Talk: Witango 5 and recursion David Shelley
- Re: Witango-Talk: Witango 5 and recursion Alan Wolfe
- Re: Witango-Talk: Witango 5 and recursion Alan Wolfe
- Re: Witango-Talk: Witango 5 and recursion John McGowan
- Re: Witango-Talk: Witango 5 and recursion Alan Wolfe
- Re: Witango-Talk: Witango 5 and recursion John McGowan
- RE: Witango-Talk: Witango 5 and recursion David Shelley
