我的文本格式是
http://www.kanxun.com/1.mp3
真的爱你
http://www.kanxun.com/2.mp3
光辉岁月
http://www.kanxun.com/3.mp3
海阔天空
.............这种格式该怎么加到list里啊?
我用
Open App.Path & "\音乐.txt" For Input As #1
Do Until EOF(1)
Line Input #1, a
List1.AddItem a
Loop
Close #1
该怎么改才能让他 只显示歌名 单击出现 URL属性哦
http://www.kanxun.com/1.mp3
真的爱你
http://www.kanxun.com/2.mp3
光辉岁月
http://www.kanxun.com/3.mp3
海阔天空
.............这种格式该怎么加到list里啊?
我用
Open App.Path & "\音乐.txt" For Input As #1
Do Until EOF(1)
Line Input #1, a
List1.AddItem a
Loop
Close #1
该怎么改才能让他 只显示歌名 单击出现 URL属性哦
解决方案 »
- 用VB的CommonDialog控件“打开”对话框选中的文件,怎样判断所选中文件的大小?
- chenjl1031大大弱弱的问下是否有关于VB6.0+SQL2000的登陆操作的具体安例可以供学习分析的吗?
- 100分求助;;;回车的问题..
- 呵呵,高兴,散分,目前计划泡一哈萨姑娘,正在调用DllRegisterServer函数呢!大家快提上油壶给我加油来。。。
- SHELL打开文件的问题
- SSTab中的焦点问题。
- 用程序实现对access97数据库中的字段(用户自定义的)为空的记录的修改
- 一个可能很古老的问题
- 求高手详细解释。。。谢谢
- 如何判断程序是否是第一次运行?
- 关于VaSpread控件
- 分辨率的问题,在线等待
Erase URL
List1.Clear
Open App.Path & "\音乐.txt" For Input As #1
Do Until EOF(1)
Line Input #1, a
Redim Preserve URL(List1.ListCount)
URL(List1.ListCount) = a
Line Input #1, a
List1.AddItem a
Loop
Close #1
End SubPrivate Sub List1_Click()
MsgBox URL(List1.ListIndex)
End If
Private Sub List1_Click()
Me.Caption = urlArr(List1.ListIndex)
End SubPrivate Sub Form_Load()
Dim i As Long, a As String
i = 0
Open App.Path & "\音乐.txt" For Input As #1
Do Until EOF(1)
Line Input #1, a
If i Mod 2 = 0 Then
ReDim Preserve urlArr(i)
urlArr(i / 2) = a
Else
List1.AddItem a
End If
i = i + 1
Loop
Close #1
End Sub