-
Nov 27th, 2011, 12:47 PM
#1
Thread Starter
New Member
Arrayed class inside a class, what am I doing wrong?
Haven't coded in a while, and ran into a wall when setting up my program data structure
So I have something like this in a class file;
Public Class X
Public Stuff as Integer
Public Stuff1 as String
Public Stuff2 as Double
End Class
Public Class Y
Public Things as Integer
Public More() as X
End Class
Dim Z as new Y
ReDim Z.Y(4)
Z.Y(2)=4
But obviously this doesn't work...
I want to structure my program this way, what's the best way to go about that?
I want to access multiple data types in the same array from within a class, as it should be a subset of my base class etc... and want to be able to change the size of the array
Or is this class array within class nesting a dead end?
Last edited by Athiril; Nov 27th, 2011 at 12:56 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|