G
Guest
Hi,
I need to create an Array with objects of another class. I thought I could
make it the follwing way.. but it is not working.. anyone who know how to
make it work?
Class1
Private xCollection() As Class2
for i = 0 to 10
xCollection(i) = new Class2(5)
next
Class2
Private i As integer
Public Sub New(byVal instX As integer)
i= instX
End Sub
I need to create an Array with objects of another class. I thought I could
make it the follwing way.. but it is not working.. anyone who know how to
make it work?
Class1
Private xCollection() As Class2
for i = 0 to 10
xCollection(i) = new Class2(5)
next
Class2
Private i As integer
Public Sub New(byVal instX As integer)
i= instX
End Sub