Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: blinkdude on November 17, 2003, 02:22 AM

Title: Splt Count.. help
Post by: blinkdude on November 17, 2003, 02:22 AM
OK this is for a Mp3 player on my bot...

the text box txtfile.text = "The DIR to file..c:\folder\folder\file.mp3"
txtname.text = "short name " only .mp3 not hole Dir link




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)


Title: Re:Splt Count.. help
Post by: Soul Taker on November 17, 2003, 11:37 AM
You could use Ubound(Splt),
Title: Re:Splt Count.. help
Post by: blinkdude on November 17, 2003, 01:55 PM
ah thx! Splt(UBound(Splt)) works just right ;)