Experts, if possible can I get a little nudge on a recursion item within vbscript?
I have a function that I need to call on itself to cycle through some data.
Without overloading anyone with too much info, I basically have a dictionary object, that is laid out like so:
Dictionary Key = Parent Object
Dictionary Value = Children, each separated by "\\"
arrNavChildren = fncGatherNavChildren(strNavKey, dicRelationshipParentToChild.Item(strNavKey))
Function fncGatherNavChildren(strNavKey, strNavItem)
If dicRelationshipParentToChild.Exists(strNavKey) Then
fncGatherNavChildren = Split(strNavItem, "\\")
fncGatherNavChildren = ""
Basically, I need to see about having the function call itself on each pass, to see if there are more children to add to the array. *If that makes sense.
So, it could be like this:
ChildB, SubChildA\\SubChildB... and so on.
Would somebody happen to know where I can find information on how to accomplish this? The Google Zhar hasn't been too helpful as of yet.