Drag and Drop Media Files?

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
18 posts Page 2 of 2
Contributors
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: Drag and Drop Media Files?
zachman61
what does tagging it do?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Drag and Drop Media Files?
mandai
A tag is just a string that is used to identify the item.
Tagging might not be needed, you should only need to work by the indexes that are already there.
Mandai and Reboh's codes to add the song name and not the extension it only adds one song and it then crashes
I think the subitems part is causing the crash.
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: Drag and Drop Media Files?
zachman61
hmm
Ill take that out then for now until the next version of the program :D
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

Re: Drag and Drop Media Files?
GoodGuy17
Mmmm, maybe it is crashing because of my "+ 1" part in the subitems adding. If so, write code that checks if the index is 0, if true then + 1, if false then don't.

Though I may be wrong, and I am expecting Mandai to correct me :)
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Drag and Drop Media Files?
mandai
I don't see how the i in the loop could relate to the subitem that you are trying to add. You need another loop within based on the subitem count to do something like that, or you could just specificy the number.
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

Re: Drag and Drop Media Files?
GoodGuy17
Eh, if you mean you can't see why the i would relate to the subitem(i + 1) part, then:

I am using the var i to keep track of the index and loop, without storing another integer to keep track of the index.
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Drag and Drop Media Files?
mandai
So if you are at item 5 then you will look for subitem #6? I don't see how that is useful in copying items from different listboxes.
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

Re: Drag and Drop Media Files?
GoodGuy17
I didn't intend for that, I intended to use + 1 to fix the exception it throws.

Zach, just check if the index is 0, if yes then + 1, if not then don't. That should work.
18 posts Page 2 of 2
Return to “Tutorial Requests”