View Single Post
  #5 (permalink)  
Old 06-27-2007, 09:46 PM
ccoonen ccoonen is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jun 2007
Location: Wisconsin
Posts: 317
iTrader: (0)
ccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished road
well... you can iterate to how ever many levels you program it for you know?

Code:
 If you say:
for x = 0 to ubound(datasource)
  for y = 0 to ubound(datasource(x))
    for z = 0 to ubound(datasource(x)(y))
    ......
    next
  next
next
That's 3 levels deep. With recursion it can go Unlimited levels deep. You can have parent, child, child, child, child, child, child, etc... iinfinite levels (n-level). This is why recursion is the only way because their is not telling how "deep" the levels go
Reply With Quote
The Following User Says Thank You to ccoonen For This Useful Post:
HelloWorld (06-27-2007)