Results 1 to 6 of 6

Thread: Arrayed class inside a class, what am I doing wrong?

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    13

    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
  •  



Click Here to Expand Forum to Full Width