VB School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB Expert!

Join 300,456 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,648 people online right now. Registration is fast and FREE... Join Now!




Recurs or using array of an class

 

Recurs or using array of an class, which is better

NoBrain

2 Jul, 2009 - 10:02 AM
Post #1

D.I.C Lover
Group Icon

Joined: 25 Mar, 2009
Posts: 1,152



Thanked: 33 times
Dream Kudos: 125
My Contributions
exuse me for the question but what do you think is better to do a recurs function or use a arry of classes to avoid recurs i mean in treath of stack overlow to use the arry will it make any diference if i dinamicly change how many items the arry got

ty for your repleys


User is offlineProfile CardPM
+Quote Post


vb5prgrmr

RE: Recurs Or Using Array Of An Class

2 Jul, 2009 - 10:03 PM
Post #2

D.I.C Regular
***

Joined: 21 Mar, 2009
Posts: 459



Thanked: 30 times
My Contributions
Well NoBrain, it really depends upon what you are doing. If you are doing a recursive function that searches a hard drive...

Well, you have to be careful on how you use recursion because if you code it (recursive dir) the wrong way then you will have problems with the stack but if you do it right. You should have no more functions on the stack than there are directories from the root to the deepest folder and thus you will avoid the stack overflow error.

As for whatever language you question is in, may I suggest that you proof read what you are writing and perhaps use a spell checker. Then don't forget that one of these guys will come around and harass you with that please post your code policy cut and paste thingy...
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 02:08AM

Live VB Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month