Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 For loop problem
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
recneps




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sun Mar 07, 2004 2:02 am   Post subject: (No subject)

well I think I fixed the upload problem Thinking I'll take a look at the code monday in school
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
recneps




PostPosted: Sun Mar 07, 2004 3:33 pm   Post subject: (No 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.
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: