Don't use array and try to use collection instead. We are talking about
VB.NET and not C language. In C you need a hard pointer for dynamic memory
but in today VB.NET you can use collection.
http://msdn.microsoft.com/library/de...Collection.asp
good luck.
chanmm
"Jarod" <(E-Mail Removed)> wrote in message
news

A436C27-86AB-45B6-9C31-(E-Mail Removed)...
> Hello
> I am curious how should I use the array of doubles. The problem is I don't
> know in advance how much elements would it have, but I can be sure it will
> be
> less then let's say 150 or 500. So should I define the largest one or use
> an
> arraylist ? I don't resize it, because after a few calculation the
> application will be closed. It works like that : read the file, make
> calculations, save the file , close. I could count the rows in a file and
> then define an array but isn't it waste of time ?
> Jarod