Arrays and Classes

XGamerX

Member
Joined
Jan 12, 2003
Messages
5
Hey, I have another question for you guys....

Ok say I have a class [VB] Public Class A [/VB]

now...

I want to define an array with the data type being the Class A

...

[VB] Dim Array1() As (New?) Class A [/VB]

then it doesnt seem to work as I get a "Reference isnt an instance of an object" or somethign along those lines...

Please... any help would be appreciated...

I want it to work where each element in the array has access to its own individual member of the class.

Ex:

[VB] Array1(1).[Member] = [Value][/VB]

and then the element 1 has the value i just defined and so on...
 
Back
Top