|
-
May 28th, 2002, 05:16 PM
#1
Thread Starter
Fanatic Member
Array Question
Hi I am trying to take a string that would look like this:
filename.exe|filename.fil<br>filename.pdf|filename.doc
I then want to use split to split on the <br> tag. From there I would like to have all the filenames placed into an array like this:
array(o) = filename.exe
array(1) = filename.fil
array(2) = filename.pdf
array(3) = filename.doc
Problem is that I will never know how large the array should be. It is going to be completely dynamic. Here is what I have so far:
Dim tmp$
Dim tmpArray() As String
Dim intDynArray() As String
tmp = MinusHeader
tmpArray = Split(tmp, "<br>")
'ReDim Preserve intDynArray(UBound(tmpArray) + 1)
Dim i%
For i = 0 To tmpArray(UBound(tmpArray))
Debug.Print tmpArray(i)
Next i
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|