I have looked online, but I don't seem to be able to find the information that I'm wanting. Here is what I'm trying to do.
I have used the split function to create an array of parts of a string such as
Now, I'm needing to track the starting location and length for each string in the array.
I've never used a multi-dimensional array before, so I'm not exactly sure if this is the best solution or not or even if I would need a 2 or 3 dimensional array. I also thought that (not sure if this is possible) that I could create a user-defined data type that would have the two fields I needed and then declare the array as my new data type. I could also create my own custom collection using a class module. I suppose that I could even create a table and actually store the information, but I would rather not use that method. Any help in knowing which method would be the best and also how to implement that solution would be very appreciated.
I have used the split function to create an array of parts of a string such as
Code:
Dim str as String Dim strArray() as String str = "Left(str, 8) & Mid(str, 10, 7)" strArray = Split(str, "&")
I've never used a multi-dimensional array before, so I'm not exactly sure if this is the best solution or not or even if I would need a 2 or 3 dimensional array. I also thought that (not sure if this is possible) that I could create a user-defined data type that would have the two fields I needed and then declare the array as my new data type. I could also create my own custom collection using a class module. I suppose that I could even create a table and actually store the information, but I would rather not use that method. Any help in knowing which method would be the best and also how to implement that solution would be very appreciated.
Comment