Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursive: See recursive
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01083365
Message ID:
01083728
Views:
11
Rick,
I don't see how I can accomplish what I want without the bool return value.
Your example will always recurse through all nodes in the tree (please correct me if I am wrong because I find recursion very mind bogling).

Einar

>And you can even avoid the boolean return value if you want to:
>
>
>
>private void button2_Click(object sender, System.EventArgs e)
>{
>  RecursiveMethod(oTree.Nodes[0]);
>}
>
>private void RecursiveMethod(TreeNode treeNode)
>{
>  if(treeNode.Nodes.Count>0)
>     foreach(TreeNode n in treeNode.Nodes)
>        RecursiveMethod(n);
>  else
>     MessageBox.Show(treeNode.Text);
>}
>
>
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform