Jammerules
asked on
vb6 - Declare an array dynamically with an unknown number of rows and unknown number of columns
Experts,
Here is my predicament:
I need an array that I can Redim Preserve at runtime that should be able to hold unknown number of rows and unknown number of columns.
It does not necessarily need to be an array. Anything that works is fine.
Scenario:
I want to store a bunch of folder names and files stored in it. So essentially, there could be a bunch of folders containing a bunch of files :(
Thanks!
Here is my predicament:
I need an array that I can Redim Preserve at runtime that should be able to hold unknown number of rows and unknown number of columns.
It does not necessarily need to be an array. Anything that works is fine.
Scenario:
I want to store a bunch of folder names and files stored in it. So essentially, there could be a bunch of folders containing a bunch of files :(
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I had changed my approach and am currently using a two dimensional array with preset row length, although the second dimension is not...
I think Luis' approach would be more neat (in a way), but hey, I already coded the way I did and it is working. So, why break it when it works :). Thanks Luis for your quick response. Sorry it took a while to accept your solution.
I think Luis' approach would be more neat (in a way), but hey, I already coded the way I did and it is working. So, why break it when it works :). Thanks Luis for your quick response. Sorry it took a while to accept your solution.
1. What kind of processing (actions) are you going to do with the data in this file structure?
2. Does this data exist only for the life of the current execution or do you need this data to persist between executions?