>> When I inspect the array elements on my Mac, "within" does not >> show up >> anywhere. > > Will you do me a favour please? > Try this on your mac. > > dim s As String > dim arr() As String > dim found As Integer > > s = "This is some text with" + EndOfLine + EndOfLine > s = s + "carriage return characters embedded" + EndOfLine + > EndOfLine > s = s + "within the string, for testing the" + EndOfLine + EndOfLine > s = s + "split function." > > arr = Split(s) > > MsgBox arr (7) > > On windows, I get exactly what I would expect, A msgbox with the > following > text: > embedded > > within
With ElfData, you get this: dim s As String dim found As Integer s = "This is some text with" + EndOfLine + EndOfLine s = s + "carriage return characters embedded" + EndOfLine + EndOfLine s = s + "within the string, for testing the" + EndOfLine + EndOfLine s = s + "split function." dim fi as new ElfDataFields( s ) if fi.movenext(7) then MsgBox fi // "split function" end if any good? The 7 may be one off, as that's the number of lines moved, not array index. Also, mine works correctly with any line ending. -- http://elfdata.com/plugin/ "String processing, done right" _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>