that sounds like a very inefficient way of doing something, if the email is large the arrays could be massive, can i ask what you are doing this for?
Anyways, you would use the same code as i exampled earlier but this time in the read loop, read in both subj and body into their own arrays:
Do While QueryResults.Read()
array(counter) = QueryResults("sbjMail")
array2(counter) = QueryResults("bdMail")
array3(counter) = QueryResults("id")
counter = counter + 1
Loop
(dont forget to DIM the arrays are ReDim Preserve afterwards)
ok, now you want to break each of the above arrays down into another array?
So loop through the above arrays and use split to populate 2 new arrays with a pointer for every word. First we need to identify which array pointer we need to look at based on user input i suppose? So
Dim RequestedEmailID as integer
RequestedEmailID = txtRequest.text
Dim Counter2 as integer
Dim ArrayPointer as integer
For Each itm In array3 'array 3 is our array of ID numbers
if array3(Counter2) = RequestedEmailID then
ArrayPointer = Counter2
End If
Counter2 = Counter2 + 1
Next itm
So we now know where in Array and Array2 our information is coming from, so now we can simple split them into arrays as follows:
Dim WordsArray() as String
WordsArray = Array(ArrayPointer).Split(" ")
Dim WordsArray2() as String
WordsArray2 = Array2(ArrayPointer).Split(" ")
And that should do it, again written of the top of my head so may be buggy, Although looking at this it seems very in-efficient, perhaps you should be doing this some other way?
But yea, hope that helps.
Regards
HeavenCore
EDIT: corrected a few bits