
Archivo con lista
Publicado por Analia (28 intervenciones) el 27/01/2007 01:56:09
Tengo un archivo .txt que contiene una lista de archivos de sonido para reproducir, pero al hacer click en el boton que corresponde no me reproduce nada, aqui les paso el codigo, espero que alguien me pueda ayudar.
Private Sub Command1_Click()
Open "MiLista.txt" For Append As #1
For lnArchs = 0 To File1.ListCount - 1
If File1.Selected(lnArchs) Then
Print #1, File1.Path + "\" + File1.List(lnArchs)
End If
Next
Close #1
Dim stArchivoDeMusica As String
Open "MiLista.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, stArchivoDeMusica
MMControl1.Command = "Open"
MMControl1.From = 0
MMControl1.Command = "Play"
Loop
Close #1
End Sub
Private Sub Command1_Click()
Open "MiLista.txt" For Append As #1
For lnArchs = 0 To File1.ListCount - 1
If File1.Selected(lnArchs) Then
Print #1, File1.Path + "\" + File1.List(lnArchs)
End If
Next
Close #1
Dim stArchivoDeMusica As String
Open "MiLista.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, stArchivoDeMusica
MMControl1.Command = "Open"
MMControl1.From = 0
MMControl1.Command = "Play"
Loop
Close #1
End Sub
Valora esta pregunta


0