On 4/9/07, Steve Garman <[EMAIL PROTECTED]> wrote: > > dim fi as new ElfDataFields( s, " " ) > > > if fi.MoveNext(7) then > > MsgBox fi > > end if > > Just downloaded your plugin to test. > > if fi.MoveNext(8) then > MsgBox fi > end if > > produces the same string the OP was complaining about, two words with two > embedded endOfLines.
Actually I thought that the words immediately after the EndOfLines in my text were not included at all in the array, because I was viewing the results in the debugger's array element viewer. It only shows a single line of text per element. So I mistakenly assumed that they had been completely omitted. In addition, I was using a faulty test, indexOf, to find a single word in an array element that had something more like someWord + EndOfLine + findWord in an array element. > I think what he really wanted was a function to do the equivalent of > Split( ReplaceLineEndings( s, " " ) ) Yes, exactly. A quite simple solution. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
