1 and 2 dimensional arrays
I'm going to try my best to explain this, so bear with me. I'm creating a parsing engine for some emails that i receive so i can more easily monitor and control the data. I've begun creating a class that parses out the information and stores the values into a public valued array so i can cycle through the info. (may not be the best idea so open to any others) but there are a total of 6 arrays. 2 of which are 2 dimensional. The problem i'm having is i need/want to store one of the 1 dimensional arrays into a 2 dimensional array. example:
oneDime(0) = "value 1"
oneDime(1) = "value 2"
oneDime(2) = "value 3"
twoDime(0,1) = "group heading"
twoDime(1,1) = "group date"
twoDime(2,1) = oneDime
They are both casted as string() arrays:
Private oneDime(2) As String
Private twoDime(,) As String <- casted this way because i do not know the total values needed so i am using ReDim Preserve to adjust as needed.
The error i'm getting is this:
Value of type '2-dimensional array of String' cannot be converted to 'String'.
Please help.
Jeff Dupont
-CAFM Developer
|