here we go, everything in one neat package......heheehe

    Dim ArrayCount As Integer = 0
    Dim TempStr As String = ""
    For Each words As String In lookList
        For Each StrLine As String In TextBox1.Text.Split(vbNewLine)
            If StrLine.Contains(words) Then
                TempStr = TempStr & vbCrLf & StrLine
                TempStr = TempStr.Replace("?", "")
                TempStr = Trim(StrLine)
                TempStr = TempStr.Replace("<br?>", vbCrLf)
                Dim Tagless As String = StripTags(StrLine)
                TextArray(ArrayCount) = Tagless
                ArrayCount = ArrayCount + 1
            End If

was just playing around this afternoon, doing a bit of coding and watching Season 2 of Agents of Shield. very cool.

now all i've got to do, is find out why i am getting duplicate lines from "v/line to the end of file"
an afternoon well spent. :-)

ps. the good thing about this is i do not get that anoying error about being null or outside the collection.!

Edited by westsiderailway: added the ps note


If it compiles into a dll you can just include it in the project as a reference. I actually think you have to have it as a dll, but I could be wrong. If it is a dll, it's essentially a compiled software library.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.