--
Keat Jau
Final year Computer Engineering student at
University of Newcastle
E-mail: c933...@alinga.newcastle.edu.au
There are no "automatic locks" for arrays. Error 10 means "Duplicate
definition", which means that you probably are using two different types
of declarations for the same variable. Check your previous declaration,
match them and try again, it should work ...
Ps. Don't forget to use "ReDim Preserve Array$(X)" ($ if you are using
String, % if you are using Integer, etc.) so you don't loose any data
when you ReDim. Also, it can be good to use "If X Mod 20 = 0 Then ReDim
Preserve Array$(X + 20)" or something like that, so you don't have to
ReDim the Array() for each line. Set the intervall to a higher number if
you like. Using this is a good way to speed up the process inside a
loop. Try both ways and you'll see what I mean. When the file is read
into the array(), you can use a final ReDim Preserve Array(X), so you
don't have any empty elements hanging at the tail (Check you last
element, you may have to use (X - 1) if X has been increased after the
last line was read).
Hm, you also had a question on streching and zooming a plotted
PictureBox. I should use an API-call for this, try StretchBlt() or
StretchDibBits() (more info on this API-call can be found at Microsofts
info-search at http://www.microsoft.com/kb/default.asp), which probably
could do the trick. To recalculate and redraw everything over and over
again seems to be a tedious piece of work to perform in this case.
Good luck ...
Borje Hagsten