How I can declare 2 -dimentional resizable array ..
can I use array list as 2- dimensinal ??
Nada_ward
0
Junior Poster in Training
Recommended Answers
Jump to Postcan I use array list as 2- dimensinal ??
Yes you can
Dim MyList As New ArrayList() Dim Arr1() As Integer = {1, 2, 3} Dim Arr2() As Integer = {4, 5, 6} MyList.Add(Arr1) MyList.Add(Arr2) MsgBox(CType(MyList.Item(1), Integer())(2)) ' -> Second item (array) and third item in the …
Jump to PostUse redim statement.
Jump to Postcan I use 2-dimensinal array and resize it when I need ??
Use redim statement.
ReDim works fine unless you have to resize 2-dimensional array more than once and preserve the previous content. That's a limitation by design.
For example
Dim Matrix(,) As Integer ReDim Preserve …
All 9 Replies
Teme64
215
Veteran Poster
Nada_ward
0
Junior Poster in Training
kvprajapati
1,826
Posting Genius
Team Colleague
Teme64
215
Veteran Poster
Nada_ward
0
Junior Poster in Training
Teme64
215
Veteran Poster
Nada_ward
0
Junior Poster in Training
Teme64
215
Veteran Poster
Nada_ward
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.