joelwenzel
Programmer
- Jun 28, 2002
- 448
I want to store int32s, strings, nulls, etc all in the same array. Is this possible with an arraylist?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
dim MyArrayList(2) as arraylist
MyArrayList(0) = new arraylist
MyArrayList(0).add(MyObject1)
MyArrayList(0).add(MyObject2)
MyArrayList(1) = new arraylist
MyArrayList(1).add(MyOtherObject1)
MyArrayList(1).add(MyOtherObject2)
MyArrayList(1).add(MyOtherObject3)
MyArrayList(2) = new arraylist
MyArrayList(2).add(MyThirdObject1)
MyArrayList(2).add(MyThirdObject2)
MyArrayList(2).add(MyThirdObject3)
MyArrayList(2).add(MyThirdObject4)