| T O P I C    R E V I E W | 
              
              
                | Davio | 
                Posted - 14 May 2010 : 09:41:50  Anyone here have experience using recursive functions in ASP?
  It's basically a function that calls itself, each time sending different values. So it's like a loop.
  I am assisting someone here with a file upload mod and ran across the function calling itself to look through the folders and subfolders.
  It's the first I have run into recursive functions in my years of coding so it's a little hard to grasp.
  I am hoping one can replace this function with a loop? | 
              
              
                | 4   L A T E S T    R E P L I E S    (Newest First) | 
              
              
                | Davio | 
                Posted - 14 May 2010 : 17:17:33  Wow. Ok. 10 years coding and never run into recursive functions. But then again, Snitz Forums has been my teacher. lol | 
              
              
                | HuwR | 
                Posted - 14 May 2010 : 12:16:23  I use recursive functions all the time in .net and most other languages for that matter, they are generally the best way to accomplish complex iterative processes especially when the structures are tree like in nature | 
              
              
                | Shaggy | 
                Posted - 14 May 2010 : 11:12:05  I use them pretty extensively in JavaScript but don't think I've ever had need to use them in ASP. Now I know they're possible, though, I'm sure I'll find some use for them!  
 
  | 
              
              
                | ruirib | 
                Posted - 14 May 2010 : 10:22:34  Recursiveness can't always be handled with a loop, at least not as easily. The difference is that in each fucntion call you are, in fact, providing a new context, so recursive functions are a neat way to handle complexity. Going recursively through folders is such a situation... |