Results 1 to 8 of 8

Thread: [RESOLVED] string.remove() help

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2008
    Location
    Denmark
    Posts
    178

    Resolved [RESOLVED] string.remove() help

    Hey.
    I am building an app that displays a log file from mirc onto my g15 display.
    I want to remove the written timestamp infront the text, in the log file.
    I do it this way:

    vb.net Code:
    1. Private Sub RefreshLCD()
    2.         Dim ts As String() = temp.Split(Chr(10))
    3.         For g As Integer = 1 To ts.Length - 1 Step 1
    4.             If ts(g).Contains("<") Then
    5.                 ts(g) = ts(g).Remove(0, ts(g).IndexOf("<"))
    6.             End If
    7.         Next
    8.     End Sub
    9.     'Yes there's more code, but it's that part i'm talking about.

    The problem is, it DOESN'T remove the timestamp. I've tried breakpointing it and it does find a < sign.

    Here's the text that the array ts holds:

    Code:
    03[00:56] * jayb ([email protected]) has joined #test
    02[00:58] * jayb ([email protected]) Quit (Signed off)
    00[01:12] <Linkyyy> test
    00[01:12] <Linkyyy> test
    00[01:12] <Linkyyy> test
    00[01:12] <Linkyyy> test
    Session Close: Wed Jun 03 01:24:26 2009
    If you need the whole code from RefreshLCD() then say so, and i'll post it.
    Last edited by Link; Jun 4th, 2009 at 10:30 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width