Andromo - Start Making Apps - Free Signup

Announcement

Collapse
No announcement yet.

Copying MP3 files to MP3 players

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Copying MP3 files to MP3 players

    Hi, here is the .apz file for my mp3 player copier, hope someone can help me make it do what it needs to do!
    Attached Files

  • #2
    Originally posted by Arty-Media
    Hi, here is the .apz file for my mp3 player copier, hope someone can help me make it do what it needs to do!
    You can try this in the Copy button
    Code:
    --Get the drive letter
    tSel = ListBox.GetSelected("tblDrives")
    if tSel then
    	strDrive = ListBox.GetItemText("tblDrives", tSel[1])
    	--Get Files
    	tSel = ListBox.GetSelected("files")
    	if tSel then
    		--copy each item
    		for i,v in tSel do
    			--get the data element which contains the file name
    			strFile = ListBox.GetItemData("files", tSel[i]);
    			--copy to the drive above, you could add a callback function to show the files being copies
    			--there is a callback function in the help file.
    			File.Copy(strFile, strDrive, false, false, false, true, nil);
    		end
    	else
    		Dialog.Message("Songs", "Select the files you want to copy to your ".. strDrive.." Drive");
    	end
    else
    	Dialog.Message("Drive", "Please select a drive where you want to copy your music");
    	return;
    end
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

    Comment


    • #3
      thanks for that, but when i run a program with a blank list box it then it wont run, i just get the following error:

      title box: Microsoft Visual C++ Runtime Library

      Runtime Error!

      Program: E:\cd_root\autorun.exe

      abnormal program termination

      DOes anyone know how this is stopped?

      Comment


      • #4
        I made some changes to your app. I tried to comment the areas that I changed. I think your going to want to use a callback on your copy to give the user a visual of what's going on, but I left that for you to hammer on a bit. Post back if you need help.
        Attached Files

        Comment

        Working...
        X