Member Avatar for westsiderailway

i found out what the problem was, i did not give the array a size....opps.

Member Avatar for westsiderailway

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
        Next
    Next

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.!

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.