endrec
asked on
How do I create an "array" of variables (e.g. Variable1, Variable2, Variable3 where the number of variables and their values is dynamic)?
I wanted to know how I could create a collection of MemoryStream objects where the number of individual MemoryStreams that need to exist is not known ahead of time.
MemStream1
MemStream2
MemStream4
etc.
MemStream1
MemStream2
MemStream4
etc.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Do you have a way of knowing the number of memory streams at the point of creating the array?
you can always use redim preserve when face with a situation like that.
example:
for i=0 to count(options)
Redim Preserve thearr(i)
thearr(i)=MemoryStream(i)
next
done.
you can always use redim preserve when face with a situation like that.
example:
for i=0 to count(options)
Redim Preserve thearr(i)
thearr(i)=MemoryStream(i)
next
done.
ASKER