09-23-2008, 09:53 PM
In a function I have created four objects called oLevel1, oLevel2, oLevel3, oLevel4. In each iteration/step of a For-Next loop I want to list the child objects of each of the objects. However I'm not sure how to do this.
When I try to send the following concatenation (of oLevel+number) to ChildObjects I get an error at the ChildObjects line:
Is there a way to send in an object called "oLevel1" to ChildObjects in the first iteration and "oLevel2" in the second iteration etc, i.e. concatenate "oLevel" with the nLevel number before sending it?
/MGMN
When I try to send the following concatenation (of oLevel+number) to ChildObjects I get an error at the ChildObjects line:
Code:
Set oLevel1 = Description.Create()
...
For Iterator = 1 To 4 Step 1
nLevel = 1
Set List = parentFrame.ChildObjects(oLevel & nLevel) 'get childs from e.g. oLevel1 object
...
nLevel = nLevel + 1
Next
...
/MGMN