10-01-2005, 02:50 AM
|
#1
|
|
Member (8 bit)
Join Date: Apr 2004
Location: Phoenix
Posts: 223
|
vb6 array issues
I'm having a tough time with arrays. I'm kinda new to them in VB6, since I used to mess around it a few years back, stopped, and recently decided to pick it up again. Ironically, in the past I was able to figure out the answer to this problem but have totally forgotten it since then.
To the problem: I'm trying to set up an array of which length is based on a user input. The compiler, however, does not like the idea of a variable used as the length upon array declaration. I then tried declaring the array with a single element and using ReDim Preserve, but the compiler only says "Array already dimensioned." I remember years back that somehow I successfully set up the redim preserve declaration. Does anyone know of an easy way to solve this (by easy I mean a few lines, not 10 or over like some other sites show)? Thanks
__________________
"Advancement is answering the questions, discovery is questioning the answers."
|
|
|