• Welcome to Valhalla Legends Archive.
 

Splt Count.. help

Started by blinkdude, November 17, 2003, 02:22 AM

Previous topic - Next topic

blinkdude

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)


<Total-Assault@Azeroth> WTF IS THIS CLAN A BUNCH OF NERDS?
<Yoni[vL]@Azeroth> Yes.
<Grok> Yes.
<[vL]Kp> You sound surprised.
<Total-Assault> at least they admit it
&

Soul Taker

You could use Ubound(Splt),

blinkdude

ah thx! Splt(UBound(Splt)) works just right ;)
<Total-Assault@Azeroth> WTF IS THIS CLAN A BUNCH OF NERDS?
<Yoni[vL]@Azeroth> Yes.
<Grok> Yes.
<[vL]Kp> You sound surprised.
<Total-Assault> at least they admit it
&