Use variable in array declaration statement
Quick question. I have to create a byte array for lines of text. There might be 1 line, or 23 lines, there’s no way of knowing, but every line needs its own array. What I would like to do is create each array as needed. byteArray (x) and instantiate a new array for each new line as they arrive. So byteArray1 if there was one line, byte arrays: byteArray1, byteArray2, byteArray3 if there were three lines, etc. Does that make sense? Is it possible to do that? If so, how?
Thanks for your help.
Re: Use variable in array declaration statement
Use a two dim array. The first dim having an element for each line, the second dim would have the byte array for that line.
If you know the max number of lines, then there is no problem.