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:
Private Sub RefreshLCD() Dim ts As String() = temp.Split(Chr(10)) For g As Integer = 1 To ts.Length - 1 Step 1 If ts(g).Contains("<") Then ts(g) = ts(g).Remove(0, ts(g).IndexOf("<")) End If Next End Sub '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:
If you need the whole code from RefreshLCD() then say so, and i'll post it.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





Reply With Quote