Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Recursive functions

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

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...

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07