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

Reply via email to