B
Brian Cahill
I am attempting to populate a listbox from a text file. I would like
my result to get everything after that last "/" character. This code
gets everything before.
Do While objReader.Peek() <> -1
TextLine = objReader.ReadLine()
TextLine = TextLine.Substring(0, TextLine.LastIndexOf("/"c))
MsgBox(TextLine)
Loop
Example:
Applications/AS - ED Tracking Board/EDTB Train
I would like it to result to this
EDTB Train
Instead I am getting this:
Applications/AS - ED Tracking Board
thanks
my result to get everything after that last "/" character. This code
gets everything before.
Do While objReader.Peek() <> -1
TextLine = objReader.ReadLine()
TextLine = TextLine.Substring(0, TextLine.LastIndexOf("/"c))
MsgBox(TextLine)
Loop
Example:
Applications/AS - ED Tracking Board/EDTB Train
I would like it to result to this
EDTB Train
Instead I am getting this:
Applications/AS - ED Tracking Board
thanks