Results 1 to 3 of 3

Thread: ArrayList inside Structure/Class

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    18

    Resolved ArrayList inside Structure/Class

    Is it not possible to use an ArrayList inside of a Structure or a Class?

    I keep getting 'Object reference not set to instance of an object'

    I am using New.

    i.e.

    Stucture ABC
    Dim al as ArrayList
    End Structure


    Private Sub X()

    Dim Struct1 as New ABC

    Struct1.al.Add("anything")

    End Sub
    Last edited by sage; Jun 30th, 2005 at 12:50 PM.

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