Computer Science Canada

For loop problem

Author:  recneps [ Sat Mar 06, 2004 8:58 pm ]
Post subject:  For loop problem

Im not quite understanding why this keeps crashing.
Just run it and click options>add files........... (it goes on, only thing under options)
oh, and put it in a folder with a couple music files. (i could put "On error resume next" but then the last file wouldnt go in, right?")
The error will be highlighted and you'll see what im trying to do.
List1 is the playlist, File1 is the list of all files in App directory that are music files.

Edit: VB help really needs some upload things Wink
http://www.compsci.ca/v2/download.php?id=1203

Author:  Tony [ Sun Mar 07, 2004 2:02 am ]
Post subject: 

well I think I fixed the upload problem Thinking I'll take a look at the code monday in school

Author:  recneps [ Sun Mar 07, 2004 3:33 pm ]
Post subject: 

I figured it out... well sorta, i just did
code:
File1.ListIndex = 0

For a = 0 To File1.ListCount - 1
File1.ListIndex = a
MainForm.List1.AddItem File1.FileName
Label2.Caption = "Adding Files..."
Next a
(its on a separate form now Wink)
and it works.


: