Hi everyone, I am an intermediate programmer with a basic understanding of VB.NET, however, I am having a problem with a special loop named "recursive".
I didn't learn this and now am having a problem here:
To select the 3rd subitem/node inside a control named "CrumbBar", I have to:
CrumbBar1.SelectedItem = CrumbBar1.Items(0).SubItems(0)
CrumbBar1.SelectedItem = CrumbBar1.Items(0).SubItems(0).SubItems(1)
CrumbBar1.SelectedItem = CrumbBar1.Items(0).SubItems(0).SubItems(1).SubItems(2)
And go through all items, but I need to do this in a LOOP.
And I don't know how many nodes I will have to go inside.
So I wanna know how can I loop the above code?
Someone told me this is a simple recursive loop programming task.
Not easy to me, how should be that? Any help, please
I didn't learn this and now am having a problem here:
To select the 3rd subitem/node inside a control named "CrumbBar", I have to:
CrumbBar1.SelectedItem = CrumbBar1.Items(0).SubItems(0)
CrumbBar1.SelectedItem = CrumbBar1.Items(0).SubItems(0).SubItems(1)
CrumbBar1.SelectedItem = CrumbBar1.Items(0).SubItems(0).SubItems(1).SubItems(2)
And go through all items, but I need to do this in a LOOP.
And I don't know how many nodes I will have to go inside.
So I wanna know how can I loop the above code?
Someone told me this is a simple recursive loop programming task.
Not easy to me, how should be that? Any help, please