B
Bear
I load a file into a string array using the Split funcsion in this statement:
arrDraft() = Split(Expression:=docDraft.Range.Text, Delimiter:="<")
Most of the "<" characters were inserted to number the sentences but some
may be spurious Word shrapnel or may have been entered by the author of
docDraft.
So say there were five "good" hits and then a "junk" hit. The arrDraft might
look like:
1>Here is the first sentence.
2>Second sentence.
3>Third sentence.
4>Fourth sentence.
5>Fifth sentence.
The author enclosed this in angle brackets.>
6>The sentence after the author's brackets.
etc.
I'd like to "clean up" the array before using it. It there any other or
better way than by looping through each element, testing it, and if it's good
passing it into another array? Or can elements from this array be deleted
dynamically?
Bear
arrDraft() = Split(Expression:=docDraft.Range.Text, Delimiter:="<")
Most of the "<" characters were inserted to number the sentences but some
may be spurious Word shrapnel or may have been entered by the author of
docDraft.
So say there were five "good" hits and then a "junk" hit. The arrDraft might
look like:
1>Here is the first sentence.
2>Second sentence.
3>Third sentence.
4>Fourth sentence.
5>Fifth sentence.
The author enclosed this in angle brackets.>
6>The sentence after the author's brackets.
etc.
I'd like to "clean up" the array before using it. It there any other or
better way than by looping through each element, testing it, and if it's good
passing it into another array? Or can elements from this array be deleted
dynamically?
Bear