R
roidy
How do I dynamically resize an array? Take for example a program that reads
and stores a series of strings from a file, but you don`t know how many
strings there will be.
Not real code!!
dim test() as string
dim loop as integer = 0
while !endofFile
{
test(loop)=readStringFromFile
loop=loop+1
redim test(loop)
}
However redim destorys the perivous data. So how do I grow the size of the
array at runtime?
Thanks
Rob
and stores a series of strings from a file, but you don`t know how many
strings there will be.
Not real code!!
dim test() as string
dim loop as integer = 0
while !endofFile
{
test(loop)=readStringFromFile
loop=loop+1
redim test(loop)
}
However redim destorys the perivous data. So how do I grow the size of the
array at runtime?
Thanks
Rob