It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Problem With Variables

Moderator: dafunkymunky

Problem With Variables

Postby danielair on Tue Feb 23, 2010 8:04 pm

Okay I'm making a song organizer and I have a program that will load the files in a folder into a box and display the songs info into a list view. That part works fine but when you click the button to make it do anything it will get the variables that it need from the tags on the cells for each song but for some reason the one for the Album just disappears... I tried having it just show the value in a message box and it works fine. Just when I try to combine it with another variable then it wont show at all. Heres my code
Code: Select all
    Private Sub CopySong(ByVal i As Integer)
        Dim SongPath As String = SongList.Items.Item(i).Tag
        Dim SongName As String = SongList.Items.Item(i).SubItems.Item(1).Tag.ToString
        Dim SongArtist As String = SongList.Items.Item(i).SubItems.Item(2).Tag.ToString
        Dim SongAlbum As String = SongList.Items.Item(i).SubItems.Item(3).Tag.ToString

        'MsgBox(SongPath)
        'MsgBox(SongName)
        'MsgBox(SongArtist)
        'MsgBox(SongAlbum) This part works fine.

        Dim RootPath = "C:\Users\Caleb\Desktop\Music"
        Dim ArtistDir = RootPath & "\" & SongArtist & "\"
        Dim AlbumDir = ArtistDir & "\" & SongAlbum & "\"

        MsgBox(RootPath)
        MsgBox(ArtistDir)
        MsgBox(AlbumDir) 'This part will show everything except for the SongAlbum
    End Sub


Any help would be awesome!
Thanks,
Daniel
danielair
 
Posts: 1
Joined: Tue Feb 23, 2010 8:02 pm

Who is online

Users browsing this forum: No registered users and 1 guest