Type enr Chemin As String Artiste As String Titre As String Album As String End Type Public tbl() As enr
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate Sub test_Click() Dim tbl() As enr MsgBox tbl(0).Chemin MsgBox tbl(0).Artiste MsgBox tbl(0).Titre MsgBox tbl(0).Album End Sub
> Private Sub test_Click() > > Redim Preserve tbl(0) > > tbl(0).Chemin = "c:" > tbl(0).Artiste = "Ben Harper" > tbl(0).Titre = "Burn One Down" > tbl(0).Album = "Fisht For your Mind" > > MsgBox tbl(0).Chemin > MsgBox tbl(0).Artiste > MsgBox tbl(0).Titre > MsgBox tbl(0).Album > > End Sub >
Public Sub BtmCmdOk_Click() Dim tbl() As enr Dim Fichier As String Dim Chemin As String 'recherche les information dans les tag id3 et les met dans les variables. Dim enr1 As enr enr1.Chemin = Chemin enr1.Artiste = GetArtiste(Chemin & "" & Fichier) enr1.Titre = GetTitre(Chemin & "" & Fichier) enr1.Album = GetAlbum(Chemin & "" & Fichier) tbl(Ligne) = enr1 MsgBox tbl(0).Chemin MsgBox tbl(0).Artiste MsgBox tbl(0).Titre MsgBox tbl(0).Album End Sub
Type enr Chemin As String Artiste As String Titre As String Album As String End Type Public tbl() As enr
Private Sub test_Click() MsgBox tbl(0).Chemin MsgBox tbl(0).Artiste MsgBox tbl(0).Titre MsgBox tbl(0).Album End Sub