|
-
Nov 7th, 2001, 08:33 AM
#1
Thread Starter
New Member
newbie xtreme
hey..nice site...
now I know this may be "basic" stuff but....
i wanna know if this code could be shortened or made more efficient? >>
Private Sub Form_Load()
Dim x As String
Open "artist.txt" For Append As #1
Open "song.txt" For Append As #2
Open "album.txt" For Append As #3
Open "genre.txt" For Append As #4
Close #1
Close #2
Close #3
Close #4
Open "artist.txt" For Input As #1
Do While Not EOF(1)
Input #1, x
lstArtist.AddItem x
Loop
Close #1
Open "song.txt" For Input As #1
Do While Not EOF(1)
Input #1, x
lstSong.AddItem x
Loop
Close #1
Open "album.txt" For Input As #1
Do While Not EOF(1)
Input #1, x
lstAlbum.AddItem x
Loop
Close #1
Open "genre.txt" For Input As #1
Do While Not EOF(1)
Input #1, x
lstGenre.AddItem x
Loop
Close #1
End Sub
thx! ;-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|