Results 1 to 30 of 30

Thread: help please [RESOLVED]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Resolved help please [RESOLVED]

    I have this code below
    Private Sub Command1_Click()
    Dim f1 As Integer, songpath As String, mp3path As String, f2 As Integer, i As Integer


    VB Code:
    1. mp3path = "C:\test\my_mp3s"
    2.    
    3.      f2 = FreeFile
    4.     Open mp3path & "mp3.txt" For Output As #f2       ' if you don't need mp3.txt take out
    5.      f1 = FreeFile
    6.      
    7.     Open mp3path & "audiolist.xml" For Output As #f1
    8.     Print #f1, "<?xml version=""1.0""?>"
    9.     Print #f1, "<songs>"
    10.     songname = Dir(mp3path & "\*.mp3")   ' get first track
    11.     i = 1
    12.     While Not Len(songname) = 0
    13.         songpath = "<song path=""" & mp3path & songname & """ title=""" & songname & """/> "
    14.         Print #f1, songpath
    15.         Print #f2, songname                  ' for mp3.txt
    16.         Sleep 100                                ' slight pause, needed
    17.         songname = Dir                         ' get next track
    18.    
    19.     Wend
    20.     Print #f1, "</songs>"
    21.  
    22.  
    23. Close
    24. End Sub

    this then prints this

    <?xml version="1.0"?>
    <songs>
    <song path="C:\test\my_mp3s02-Never Say Goodbye.mp3" title="02-Never Say Goodbye.mp3"/>
    </songs>

    my question is - is there any way that this will work but remove the c:\test\ when written.
    thanx
    Last edited by robvr6; Feb 3rd, 2005 at 12:35 PM. Reason: resolved

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: help please

    Not quite sure I follow, but if you change your variable to the path you want
    it will printout with that path. Also, you can use the app.path function to
    append the current directory that your exe is located in.

    VB Code:
    1. mp3path = App.Path & "\my_mp3s"
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Red face Re: help please

    Just take out the path. ( & mp3path & )

    VB Code:
    1. songpath = "<song path=""" songname & """ title=""" & songname & """/> "

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Re: help please

    sorry shouldve been clearer it is just the path in the xml that I need to print like this <song path="my_mp3s\"artist="" title=""/>

    <?xml version="1.0"?>
    <songs>
    <song path="my_mp3s\"artist="" title=""/>

    </songs>

    but all I can get is this
    <?xml version="1.0"?>
    <songs>
    <song path="C:\test\my_mp3s02-Never Say Goodbye.mp3" title="02-Never Say Goodbye.mp3"/>
    </songs>

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: help please

    Yes, that will work but does the poster want no path at all and only the song title?
    Guess we will have to wait and see

    My eyes are getting tired. I missed that he didnt include a trailing backslash.

    VB Code:
    1. mp3path = App.Path & "\my_mp3s\"
    2. 'Original prints like this - "C:\test\my_mp3s02-Never Say Goodbye.mp3"
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: help please

    Then change your variable to how you want it to print.
    VB Code:
    1. mp3path = "my_mp3s\"
    You maen like that?
    Or like this

    VB Code:
    1. songpath = "<song path=""" & mp3path & """ title=""" & songname & """/> "
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Re: help please

    I tried that but kept getting a path not found error, I thought this would be easy because I get it reading from the my_mp3s f older but it still prints the full path

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: help please

    Oh, like that.
    VB Code:
    1. Dim mp3Path2 As String
    2. mp3Path2 = "my_mp3s\"
    3.  
    4. songpath = "<song path=""" & mp3path & songname & """ title=""" & songname & """/> " 'Original
    5. 'New
    6. songpath = "<song path=""" & mp3Path2 & """ title=""" & songname & """/> "
    This way we are not changing the Open ... path for the file.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Re: help please

    do I need to replace the original with that or add to my original?

  10. #10
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: help please

    replace it with this;

    VB Code:
    1. songpath = "<song path=""" & mp3Path2 & """ title=""" & songname & """/> "

    I didn't think you wanted the path at all. I see you wanted them separated.

  11. #11
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: help please

    Oh ya, and change title to artist.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  12. #12
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: help please

    I don't see the artist info.

  13. #13

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Re: help please

    Ive messed up somewhere here
    Im getting
    <?xml version="1.0"?>
    <songs>
    <song path="my_mp3s\" artist="02-Never Say Goodbye.mp3"/>
    </songs>

    when I need this.
    <?xml version="1.0"?>
    <songs>
    <song path="my_mp3s/.mp3"artist="" title=""/>

    </songs>

    VB Code:
    1. Private Sub Command1_Click()
    2.     Dim f1 As Integer, songpath As String, mp3path As String, f2 As Integer, i As Integer, mp3Path2 As String
    3.  
    4.    
    5.    
    6.     mp3path = "C:\test\my_mp3s\"
    7.     mp3Path2 = "my_mp3s\"
    8.  
    9.      f2 = FreeFile
    10.     Open mp3path & "mp3.txt" For Output As #f2       ' if you don't need mp3.txt take out
    11.      f1 = FreeFile
    12.      
    13.     Open mp3path & "audiolist.xml" For Output As #f1
    14.     Print #f1, "<?xml version=""1.0""?>"
    15.     Print #f1, "<songs>"
    16.     songname = Dir(mp3path & "\*.mp3")   ' get first track
    17.     i = 1
    18.     While Not Len(songname) = 0
    19.        songpath = "<song path=""" & mp3Path2 & """ artist=""" & songname & """/> "
    20.         Print #f1, songpath
    21.         Print #f2, songname                  ' for mp3.txt
    22.         Sleep 100                                ' slight pause, needed
    23.         songname = Dir                         ' get next track
    24.    
    25.     Wend
    26.     Print #f1, "</songs>"
    27.  
    28.  
    29. Close
    30. End Sub

  14. #14
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: help please

    which field is the artist? Just substitute yours for mine in CAPS

    VB Code:
    1. songpath = "<song path=""" & mp3Path2 & """ artist=""" & ARTIST  & """ title=""" songname & """/> "

  15. #15

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Re: help please

    I get the artist using a more complex version but the priciple is the same so I thought it would be easier to explain with this smaller example
    Attached Files Attached Files

  16. #16
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: help please

    that's better. you should be able to use the artist field. Just substitute it where I have the CAPS above.

  17. #17

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Re: help please

    so if I add those ammendments to that code then should that do the trick?

  18. #18
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: help please

    Yes. the artist info wasn't in the first post. I see that it is in the code. Providing that it is correct, then it should work. If it doesn't, post some code.

  19. #19

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Re: help please

    Im gettin a syntax error now - Its probly blindingly obvious but my eyes are goin and gettin tired lol

    VB Code:
    1. Private Sub Command2_Click()
    2. Dim f1 As Integer, xmlpath As String, songpath As String, mp3path As String, f2 As Integer, i As Integer
    3.     Dim Artist As String, SongName As String, artname As String, fname As String, mp3Path2 As String
    4.  
    5.     Dim mytag As Boolean
    6.    mp3path = "C:\Program Files\mgamerz\my_mp3s\"
    7.    xmlpath = "C:\program files\mgamerz\ "
    8.      
    9.      mp3Path2 = "my_mp3s\"
    10.  
    11.      
    12.      SongName = Dir(mp3path & "\*.mp3")
    13.      fname = mp3path & SongName
    14.      
    15.             With Form4
    16.    
    17.     While Not Len(SongName) = 0
    18.        
    19. '        Artist = GetMP3Tag(fname)
    20.                 If Not i = 0 Then
    21.                     Load .Label1(i): Load .Text1(i)
    22.                     .Label1(i).Top = .Label1(i - 1).Top + 350
    23.                     .Text1(i).Top = .Text1(i - 1).Top + 350
    24.                     .Label1(i).Visible = True: .Text1(i).Visible = True
    25.                    
    26.                 End If
    27.                
    28.                 .Label1(i) = SongName
    29.                 mytag = GetMP3Tag(fname)
    30.                 .Text1(i) = RTrim(MP3Info.sArtist)
    31.                      
    32.  
    33.         SongName = Dir
    34.              fname = mp3path & SongName
    35.  
    36.         i = i + 1
    37.    
    38.     Wend
    39.                 .Height = .Text1(.Text1.Count - 1).Top + 1600
    40.                 .TAG = mp3path
    41.                 MDIForm1.Caption = "You must close this form before continuing"
    42.                 .Show
    43. '                .WindowState = 2
    44.             End With
    45.     TAG = "wait"
    46.     While TAG = "wait"
    47.     DoEvents
    48.     Wend
    49.    
    50.      
    51.    i = 1
    52.      f2 = FreeFile
    53.     Open mp3path & "mp3.txt" For Output As #f2
    54.      f1 = FreeFile
    55.      
    56.     Open xmlpath & "audiolist.xml" For Output As #f1
    57.    
    58.    
    59.     Print #f1, "<?xml version=""1.0""?>"
    60.     Print #f1, "<songs>"
    61.     SongName = Dir(mp3path & "\*.mp3")
    62.     i = 1
    63.     While Not Len(SongName) = 0
    64.        
    65.         ' if you can return the name of the artist you put the code in here
    66.  
    67.                 mytag = GetMP3Tag(mp3path & SongName)
    68.                 Artist = RTrim(MP3Info.sArtist)
    69.                  If Len(Artist) = 0 Then Artist = "UNKOWN"
    70.    
    71.        
    72.         songpath = "<song path=""" & mp3Path2 & """ artist=""" & Artist  & """ title=""" songname & """/> "
    73.        
    74.         Print #f1, songpath
    75.         Print #f2, SongName
    76.         Sleep 100
    77.         SongName = Dir
    78.    
    79.     Wend
    80.  
    81.     Print #f1, "</songs>"
    82. Close
    83.  
    84. End Sub

  20. #20
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: help please

    songpath = "<song path=""" & mp3Path2 & """ artist=""" & Artist & """ title=""" & songname & """/> "

    forgot an & !

  21. #21

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Re: help please

    <?xml version="1.0"?>
    <songs>
    <song path="C:\Program Files\mgamerz\my_mp3s\07 Sweet Revenge.mp3" artist="michael kamen" title="07 Sweet Revenge.mp3"/>

    </songs>

    for some reason its writing the xml with the full path again wheras I need the xml to be llike this
    <?xml version="1.0"?>
    <songs>
    <song path="my_mp3s\07 Sweet Revenge.mp3" artist="michael kamen" title="07 Sweet Revenge.mp3"/>

    </songs>

  22. #22
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: help please

    If you only want it to work with these two folders, i can fix it.

    this will get you the folder that you want

    VB Code:
    1. right(mp3path,(len(mp3path)- len(xmlpath)+1))

    you have two options. include this in the code, or create a variable and then use the variable.

    I'd say DIM MyPath as string, and then MyPath = right(mp3path,(len(mp3path)- len(xmlpath)+1))

    It returns this: my_mp3s\
    Last edited by dglienna; Feb 3rd, 2005 at 12:09 AM.

  23. #23

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Re: help please

    what it is for is a flash based mp3 player and when a track is added to the folder the xml updates. the xml file needs to be outside of the my_mp3 folder. so when the xml is updated all that needs to be uploaded is the xml file and the folder my_mp3s. Hop you get what I mean. thats why I need the xml to come out in this format:
    <?xml version="1.0"?>
    <songs>
    <song path="my_mp3s/songname.mp3"artist="" title=""/>

    </songs>

    how I had it works apart from the path I get the full path
    cheers

  24. #24
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: help please

    VB Code:
    1. dim MyPath as String
    2.     MyPath = right(mp3path,(len(mp3path)- len(xmlpath)+1))
    3.  
    4.     songpath = "<song path=""" & MyPath & """ artist=""" & Artist  & """ title=""" songname & """/> "

  25. #25

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Re: help please

    tried that but still havin no joy with the xml file it is continuing to write the full path indstead of just
    <?xml version="1.0"?>
    <songs>
    <song path="my_mp3s/.mp3"artist="" title=""/>

    </songs>


    VB Code:
    1. Private Sub Command2_Click()
    2. Dim f1 As Integer, xmlpath As String, songpath As String, mp3path As String, f2 As Integer, i As Integer
    3.    Dim MyPath As String
    4.   Dim Artist As String, SongName As String, artname As String, fname As String, mp3Path2 As String
    5.  
    6.     Dim mytag As Boolean
    7.    mp3path = "C:\Program Files\mgamerz\my_mp3s\"
    8.    xmlpath = "C:\program files\mgamerz\ "
    9.      MyPath = Right(mp3path, (Len(mp3path) - Len(xmlpath) + 1))
    10.  
    11.      mp3Path2 = "my_mp3s\"
    12.  
    13.      
    14.      SongName = Dir(mp3path & "\*.mp3")
    15.      fname = mp3path & SongName
    16.      
    17.             With Form4
    18.    
    19.     While Not Len(SongName) = 0
    20.        
    21. '        Artist = GetMP3Tag(fname)
    22.                 If Not i = 0 Then
    23.                     Load .Label1(i): Load .Text1(i)
    24.                     .Label1(i).Top = .Label1(i - 1).Top + 350
    25.                     .Text1(i).Top = .Text1(i - 1).Top + 350
    26.                     .Label1(i).Visible = True: .Text1(i).Visible = True
    27.                    
    28.                 End If
    29.                
    30.                 .Label1(i) = SongName
    31.                 mytag = GetMP3Tag(fname)
    32.                 .Text1(i) = RTrim(MP3Info.sArtist)
    33.                      
    34.  
    35.         SongName = Dir
    36.              fname = mp3path & SongName
    37.  
    38.         i = i + 1
    39.    
    40.     Wend
    41.                 .Height = .Text1(.Text1.Count - 1).Top + 1600
    42.                 .TAG = mp3path
    43.                 MDIForm1.Caption = "You must close this form before continuing"
    44.                 .Show
    45. '                .WindowState = 2
    46.             End With
    47.     TAG = "wait"
    48.     While TAG = "wait"
    49.     DoEvents
    50.     Wend
    51.    
    52.      
    53.    i = 1
    54.      f2 = FreeFile
    55.     Open mp3path & "mp3.txt" For Output As #f2
    56.      f1 = FreeFile
    57.      
    58.     Open xmlpath & "audiolist.xml" For Output As #f1
    59.    
    60.    
    61.     Print #f1, "<?xml version=""1.0""?>"
    62.     Print #f1, "<songs>"
    63.     SongName = Dir(mp3path & "\*.mp3")
    64.     i = 1
    65.     While Not Len(SongName) = 0
    66.        
    67.         ' if you can return the name of the artist you put the code in here
    68.  
    69.                 mytag = GetMP3Tag(mp3path & SongName)
    70.                 Artist = RTrim(MP3Info.sArtist)
    71.                  If Len(Artist) = 0 Then Artist = "UNKOWN"
    72.    
    73.        
    74.        songpath = "<song path=""" & MyPath & """ artist=""" & Artist & """ title=""" & SongName & """/> "
    75.        
    76.         Print #f1, songpath
    77.         Print #f2, SongName
    78.         Sleep 100
    79.         SongName = Dir
    80.    
    81.     Wend
    82.  
    83.     Print #f1, "</songs>"
    84. Close
    End Sub

  26. #26
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: help please

    songpath = "<song path=""" & MyPath & """ artist=""" & Artist & """ title=""" & SongName & """/> "

    Print #f1, songpath



    Step through the program. I think that you must be doing something wrong. I don't see how it could be printing the path. MyPath is what I said that it was. Press FP on the line in question, and when it stops, hover over MyPath to see what it's value is. Are you running an old version?

  27. #27

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Re: help please

    Right I think I'm starting to get there lol
    I can now get this output
    <?xml version="1.0"?>
    <songs>
    <song path="my_mp3s\" artist="Royksopp" title="02 - Poor Leno [jakatta Mix].mp3"/>
    <song path="my_mp3s\" artist="Hayley Westenra" title="02-Never Say Goodbye.mp3"/>
    <song path="my_mp3s\" artist="Michael Kamen" title="05 - Swamp.mp3"/>
    <song path="my_mp3s\" artist="Michael Kamen" title="07 - Fire On Lake.mp3"/>
    <song path="my_mp3s\" artist="Johnny Mathis" title="14 Johnny Mathis It's The Most Wonderful Time Of The Year.mp3"/>
    </songs>

    All I cannot get now is the mp3 after my mp3s - you know like this
    <song path="my_mp3s\A song.mp3" artist="Johnny Mathis" title="14 Johnny Mathis It's The Most Wonderful Time Of The Year.mp3"/>
    </songs>

    I have a feeling this is just something small that I am missing now - I appreciate you taking time to help me Thanks

  28. #28
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: help please

    VB Code:
    1. If Len(Artist) = 0 Then Artist = "UNKOWN"
    2.    
    3.  MyPath = Right(mp3path, (Len(mp3path) - Len(xmlpath) + 1)) & " " & SongName
    4.        
    5.        songpath = "<song path=""" & MyPath & """ artist=""" & Artist & """ title=""" & SongName & """/> "


    get rid of the first MyPath statement, and compute it every time before the songpath statement. you said path, when you meant path and filename.
    I hope that it is right now, unless the songname is not correct.

  29. #29

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    277

    Re: help please

    Thanks very much David I think that has finally sorted it out. Waht its for is for a joint project working in conjunction with flash. I am waiting for the person who does the flash work to come home. If I have any small queries can I pm you.

    Thanks very much again for spending your time helping me

  30. #30
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: help please

    Sure. Happy to help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width