V
vbnewbie
I need to create a number of arraylists at run time.
The number of arraylists to be created is unknown at design time.
The name of the first newly created arraylist is the first element of
an array, NameArray (a Publicly declared array with an unknown number
of elements at design time).
The name of the second newly created arraylist is the second element of
NameArray, etc
Problem 1:
How can I retrieve that name from NameArray and assign it to the newly
created arraylist at run-time?
(I don't even know how to do this at design time, by the way)
Problem 2: the data in these arraylists needs to be accesible from
other parts (subs etc) of the code and additional data will be added to
those arraylists.
What is the best way to store lists of data accross the code?
(Maybe it is not an arraylist)
Keeping my fingers crossed, thanks!
The number of arraylists to be created is unknown at design time.
The name of the first newly created arraylist is the first element of
an array, NameArray (a Publicly declared array with an unknown number
of elements at design time).
The name of the second newly created arraylist is the second element of
NameArray, etc
Problem 1:
How can I retrieve that name from NameArray and assign it to the newly
created arraylist at run-time?
(I don't even know how to do this at design time, by the way)
Problem 2: the data in these arraylists needs to be accesible from
other parts (subs etc) of the code and additional data will be added to
those arraylists.
What is the best way to store lists of data accross the code?
(Maybe it is not an arraylist)
Keeping my fingers crossed, thanks!