Witango-Talk: Recursion

2004-06-04 Thread Cecilia Cos

Return Receipt
   
Your  Witango-Talk: Recursion  
document   
:  
   
was   Cecilia Cos/Newsweek Magazine
received   
by:
   
at:   06/04/2004 12:24:39 PM   
   





TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


Re: Witango-Talk: Recursion

2004-05-24 Thread John McGowan
Gene,
You can't use the For loop action when doing recursion with TCF's 
because the for loop action uses the "local/Request" scope for it's 
iterator.  (next version of Witango needs to allow that to be changed to 
Method scope)

What you can do as a work around is use the while loop, and manage the 
iterator yourself.

Or make sure your iterator in the for loop has a guaranteed unique name 
for the iterator variable.  sometimes i've used index_X  where X is the 
recursion depth.

I prefer the while loop though
/John
Wolf, Gene wrote:
  We have a need to write a Witango .tcf that recurses. We are finding that everything works well as long as the .tcf is calling itself. However, as soon as it falls out of the loop it is in and goes back to a previous instance, it seems lost. 

  Does anyone has a simple example of a recursive routine in Witango they can send me 
so I can compare it against what I am doing to see what I am doing wrong? Thanks!

TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
 


TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


Witango-Talk: Recursion

2004-05-24 Thread Wolf, Gene
   We have a need to write a Witango .tcf that recurses. We are finding that 
everything works well as long as the .tcf is calling itself. However, as soon as it 
falls out of the loop it is in and goes back to a previous instance, it seems lost. 

   Does anyone has a simple example of a recursive routine in Witango they can send me 
so I can compare it against what I am doing to see what I am doing wrong? Thanks!

TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf