Hello,
I seem to be having some trouble with Classes & arrays etc...
So my structure is as follows:
Code Code:
Class1 --Method --Method --Class2.Property --Class2.Property --Class2.Class3.Property --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 ?






Reply With Quote
