Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21909

how to break for...next statement

$
0
0
helo guys have a good day..any way i have problem im making quiz project but im stuck for loop please any one can help me?
example(i have 60 array form loop.. i i can't stop the loop if the user get 5 wrong or get 40 correct..

here my sample code


For i = 0 To intfForms - 1
Set frmQuiz = Forms.Add("frmQuiz" & frmQuizArray(i))
frm.Show vbModal
Set frm = Nothing
Next i

i want to insert this code

if quiz.markwrong = 5 then
formfailed.show
elseif quiz.mark check = 40 then
formpassed.show
else
quiz.markWrong = quiz.markWrong
quiz.markCheck = quiz.mark check
End if


thanks
sorry for my bad English and ugly code im just a newbie

Viewing all articles
Browse latest Browse all 21909

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>