I would have liked to do
DIM lines_of_text(139) as string * 50
and then fill the array with strings varying in length from 3 to 50.
I imagined this would allocate memory for the array only once.
However, I am only allowed to do
DIM lines_of_text(139) as string
Question 1 Will this cause lots of memory reallocation every time I insert a line ?
Question2 If so, can anyone think of a way to avoid all that memory reallocation ?
DIM lines_of_text(139) as string * 50
and then fill the array with strings varying in length from 3 to 50.
I imagined this would allocate memory for the array only once.
However, I am only allowed to do
DIM lines_of_text(139) as string
Question 1 Will this cause lots of memory reallocation every time I insert a line ?
Question2 If so, can anyone think of a way to avoid all that memory reallocation ?
Comment