用instr和mid这两个函数就可以!
dim str as string
dim i as integer
i=instr(1,"202.194.75.246/pub/mp3","/")
str=mid(,"202.194.75.246/pub/mp3",1,i-1)
用这种方法即可!
dim str as string
dim i as integer
i=instr(1,"202.194.75.246/pub/mp3","/")
str=mid(,"202.194.75.246/pub/mp3",1,i-1)
用这种方法即可!
解决方案 »
- 弱弱的问句 VB6.0跟ACCESS 2003怎么连接?
- 刚学用Setup Factory打包vb程序,请赐教!
- 怎么用编写代码的方式使DataGrid显示数据
- 大侠帮帮忙!!!!!!!!!
- 问题很简单,如何打印控制字体大小
- vb与sql图片的存储--------送100
- 在VBScript中Empty和Null代表什么意思?
- 请问如何用WINSOCK发送文字信息,需要转换为二进制流,如果要怎么转换?来者有分!
- 较小wav文件可以存入数据库吗?存入后能像图象一样还原成存成wav播放吗?
- 如何用VB实现文件的关联
- vb 与ado
- 请问怎么在一个label空间里面显示另一个listview控件里面有几条记录阿
str1 = "202.194.75.246/pub/mp3/luo.mp3"pos = InStrRev(str1, "/")
MsgBox "IP/DoMain=" & Left(str1, InStr(str1, "/") - 1)
MsgBox "Path=" & Mid(str1, InStr(str1, "/") + 1, pos)
MsgBox "File=" & Right(str1, Len(str1) - pos)
dim str1 as string
str1 = "202.194.75.246/pub/mp3/luo.mp3"
strs=split(str1,"/",-1,vbTextCompare)
for i=0 to ubound(strs)
debug.print strs(i)
next