I have a very simple recursive function below, which seems to work well.
I would like to be able to specify how deeply the recursion can go - how many levels to refresh, but though I spent a long-long time trying am still unable to find a way to do it.
Thanks for your help in advance.
SWK
Private Sub RefreshNode(nodp As Node)
Dim objTree As TreeView
Dim nodX As Node
Set nodX = nodp.Child
Do Until nodX Is Nothing
ClearChildren nodX
AddChildNodes nodX
RefreshNode nodX
Set nodX = nodX.Next
Loop
End Sub
I would like to be able to specify how deeply the recursion can go - how many levels to refresh, but though I spent a long-long time trying am still unable to find a way to do it.
Thanks for your help in advance.
SWK
Private Sub RefreshNode(nodp As Node)
Dim objTree As TreeView
Dim nodX As Node
Set nodX = nodp.Child
Do Until nodX Is Nothing
ClearChildren nodX
AddChildNodes nodX
RefreshNode nodX
Set nodX = nodX.Next
Loop
End Sub