For computer class im trying to make a quiz but im totally lost on how the code works.
The quiz is true and false.
I would really appreciate the help guys! Please and thanks
Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!
If anyone knows vb can you please help me out?
For computer class im trying to make a quiz but im totally lost on how the code works.
The quiz is true and false.
I would really appreciate the help guys! Please and thanks
Dim t1 As Integer Dim f1 As Integer Private Sub cmdCheckQ1_Click() If optFalse.Value = True Then t1 = t1 f1 = f1 + 1 lblMessage.Caption = "You have " & f1 & " questions right!" & "You have " & t1 & " questions wrong!" End If End Sub Private Sub cmdExit_Click() frmQuiz.Hide frmMain.Show End Sub
Dim t1 As Integer Dim f1 As Integer Private Sub cmdCheckQ1_Click() If optFalse.Value = True Then t1 = t1 f1 = f1 + 1 lblMessage.Caption = "You have " & f1 & " questions right!" & "You have " & t1 & " questions wrong!" End If End Sub Private Sub cmdExit_Click() frmQuiz.Hide frmMain.Show End Sub
lblMessage.Caption = "You have " & f1 & " questions right!" & vbCrLf & "You have " & t1 & " questions wrong!"
Edited by MaverickSidewinder, 16 December 2005 - 05:44 AM.
Dim questions(20) As String 'somewhere later lblQuestion.Caption = questions(thisQuestion + 1)
0 members, 0 guests, 0 anonymous users
Community Forum Software by IP.Board
Licensed to: Geeks to Go, Inc.