how to make a looping with a array?
this is my program, it make a visual basic 6.
this is program to input a many song to database, and the list song in a list box.
if we selected one song in a list, otomatic specific song will appear in the textbox in the under of listbox.
after that I click a button save and the song will a save in database.
after that appear a message box as to report if the song already stored in database, then "OK"
how to make after click "OK", the process can otomatic selected to the next song and a looping process like a previous. please help me..
regards
vividiah
0
Junior Poster in Training
Recommended Answers
Jump to PostIf you are asking for code to drive the form, that is a bit beyond what this forum does.
However here are some ideas that may help
For the browse button consider using the common dialog box:
click Project then Components then find MicrosoftCommonDialog X.x and the control will be …
Jump to PostAppoligies, that code won't work. I should have tested it first.
This should work betterPrivate Sub Command3_Click() Static NextSong As Integer Text1.Text = List1.List(NextSong) 'List begins at 0; Count begins at 1; first pass must be 0 'Then reset at (.ListCount - 1) NextSong = NextSong …
Jump to Posti really don't understand the issue.
please make it more clear.
Jump to PostIf I understan correctly:
When you click Save then you want to save each song in the list box to? your database? doesn't matter, the loop mechanics are the same.
If I have that right then something like this would probably work:Private Sub Save_cmd_Click() Dim Counter …
Jump to PostYes, you have it. YOU WILL USE the code used when you click "save" for 1 song where I used list2.
The Do While Loop indexes through your List1 saving one entry each loop.
All 24 Replies
Klahr_R
0
Newbie Poster
Klahr_R
0
Newbie Poster
rishif2
57
Posting Whiz in Training
vividiah
0
Junior Poster in Training
vividiah
0
Junior Poster in Training
Klahr_R
0
Newbie Poster
vividiah
0
Junior Poster in Training
Klahr_R
0
Newbie Poster
vividiah
0
Junior Poster in Training
Klahr_R
0
Newbie Poster
vividiah
0
Junior Poster in Training
Klahr_R
0
Newbie Poster
vividiah
0
Junior Poster in Training
vividiah
0
Junior Poster in Training
vividiah
0
Junior Poster in Training
vividiah
0
Junior Poster in Training
vividiah
0
Junior Poster in Training
Klahr_R
0
Newbie Poster
vividiah
0
Junior Poster in Training
vividiah
0
Junior Poster in Training
vividiah
0
Junior Poster in Training
Klahr_R
0
Newbie Poster
vividiah
0
Junior Poster in Training
vividiah
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.