Q: Array List of Array List

  • Thread starter Thread starter Geoff Jones
  • Start date Start date
G

Geoff Jones

Hi

Can anybody show me some code to create an arraylist of an arraylist i.e. a
2D array.

When I write something like

Dim my2DArray As ArrayList = New ArrayList()

the brackets at the end disappear when I move to a new line.

Can anybody help?

Ta

Geoff
 
Geoff Jones said:
Can anybody show me some code to create an arraylist of an arraylist i.e.
a 2D array.

When I write something like

Dim my2DArray As ArrayList = New ArrayList()

the brackets at the end disappear when I move to a new line.

\\\
Dim al As New ArrayList()
For i As Integer = 1 To 10
al.Add(New ArrayList())
Next i
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top