Dynamic Arrays

lickuid

Active member
Joined
Nov 6, 2006
Messages
37
Programming Experience
Beginner
Firstly, for future reference, should I post as many questions about one subject as I can in one thread? I don't want to spam the forum or anything with too many single question posts, so if that's a problem, I'll start putting multiple questions in a single thread.

My Main question is:
How can I create a dynamic array? For example, Declare it, then go through a loop and assign values to it on the fly without pre-loading any values...

Also, can someone give me an example of a multidimensional array in vb .net syntax? It can be a static array example. (I'd REALLY appreciate that)
 
Last edited:
Here is a lot of help for first learning arrays: http://www.google.com/search?hl=en&q=vb.net+array&meta and here http://www.google.com/search?hl=en&lr=&q=vb.net+multidimensional+array&btnG=Search

Arrays are not used so much anymore, at least not by me (perhaps I'm a bit lazy? ), instead the different collections I use alot, especially the strongly typed generics, basic example: Dim StringColl As New List(Of String). Collections don't do multidimensional, but they can hold any user type that provide the common two-dimensional part of the data. If you need more dimensions I think you have to use true arrays.
 
For your other question, ask as many things as you need to about a threads topic in that thread. We'll keep answering until you understand. :)

But, don't change (to drastically) that topic. More questions about arrays? Post them right here. Running into a problem getting data from your NetworkStream to put in that array? New thread.

In this way, people with the same problem in the future would be able to find the thread about the Network stream, as they would never look in a thread called "Dynamic Arrays".

Welcome to the boards :)
 
Back
Top