Valhalla Legends Forums Archive | Visual Basic Programming | Splt Count.. help

AuthorMessageTime
blinkdude
OK this is for a Mp3 player on my bot...
[code]
the text box txtfile.text = "The DIR to file..c:\folder\folder\file.mp3"
txtname.text = "short name " only .mp3 not hole Dir link
[/code]

[code]

Dim Splt() As String
If InStr(txtfile.Text, "\") Then
Splt() = Split(txtfile.Text, "\")
txtname.text = ""
'need help on this part .. is there any way to count how many "\" are in a text box? or only count the last Splt(x) after the "\"
txtname.text = Splt(x)

[/code]
November 17, 2003, 8:22 AM
Soul Taker
You could use Ubound(Splt),
November 17, 2003, 5:37 PM
blinkdude
ah thx! Splt(UBound(Splt)) works just right ;)
November 17, 2003, 7:55 PM

Search