Hello,

I seem to be having some trouble with Classes & arrays etc...

So my structure is as follows:

Code Code:
  1. Class1
  2. --Method
  3. --Method
  4. --Class2.Property
  5. --Class2.Property
  6. --Class2.Class3.Property
  7. --Class2.Class3.Property

But Assuming Class2 needs to be an Array(0 to 10) thats when we have problems assigning things!!

Dim test as Class2
Set test = new class2

test = myFunction(myString)


where myFunction is:

myFunction(test as string) as Class2
dim dummyObg AS CLASS2
set dummyOBg as new class2

redim dummyobj(0 to 10)
'code
'code

myFunction = dummyobj

end Function


Do i have to copy each array separately?
i.e array(0) = testarray(0)
array(1) = testarray(1)
etc.. etc..

Can't you just do: array = testarray ?