I would like to recursively fill an array.
I have a first array as a reference.
The second array has to be filled in order using the value of the first. (Sorry, maybe it's not very simple...)
For the moment I do something like that :
Dim ArrayToFill()
Function BuildArrayDependingFromValue(ArrayToSee, Value)
For Each Element in ArrayToSee
If ItShouldBeAdded(Element, Value) Then
AddToArray(Element, ArrayToFill)
> ArrayToFill = BuildArray(ArrayToSee, Element)
End If
Next
BuildArray = ArrayToFill
End Function
Sub Main()
ArrayToFill = BuildArrayDependingFromValue(ArrayToSee, MyValue)
End Sub
But this occurs an error of types on line ">".
Is someone able to help me ? Please... I hope it helps you.
--
X-) Split.
I have a first array as a reference.
The second array has to be filled in order using the value of the first. (Sorry, maybe it's not very simple...)
For the moment I do something like that :
Dim ArrayToFill()
Function BuildArrayDependingFromValue(ArrayToSee, Value)
For Each Element in ArrayToSee
If ItShouldBeAdded(Element, Value) Then
AddToArray(Element, ArrayToFill)
> ArrayToFill = BuildArray(ArrayToSee, Element)
End If
Next
BuildArray = ArrayToFill
End Function
Sub Main()
ArrayToFill = BuildArrayDependingFromValue(ArrayToSee, MyValue)
End Sub
But this occurs an error of types on line ">".
Is someone able to help me ? Please... I hope it helps you.
--
X-) Split.