Ashley C
2008-05-09 18:41:39 UTC
Dim fullName, fileName As String
Dim d, f As Integer
fullName = OFD.FileName
d = fullName.IndexOf("\")
f = fullName.IndexOf(".")
fileName = fullName.Substring(d, f - 2)
lblPlaying.Text = fileName
...but what the indexOf("\") is doing is taking it from the first "\"
I know I can probly do something like IndexOf("\", 5) but I can never know how many there will be.
Is there any way I can do this?