Arrays and Classes

XGamerX

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

Ok say I have a class
Visual Basic:
 Public Class A

now...

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

...

Visual Basic:
 Dim Array1() As (New?) Class A

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:

Visual Basic:
 Array1(1).[Member] = [Value]

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