Private Sub cmd1back_Click( )
fmeMain.Visible = True
fmeMain.ZOrder
fmeQ1.Visible = False
End Sub
Private Sub cmd2back_Click( )
fmeQ2.Visible = False
fmeQ1.ZOrder
fmeQ1.Visible = True
End Sub
Private Sub cmd2next_Click( )
Dim q2 As Integer
Select Case True
Case q2 = 0
If opt2a.Value = True Then
q2 = 1
fmeQ2.Visible = False
fmeQ3.ZOrder
fmeQ3.Visible = True
Else
fmeQ2.Visible = False
fmeQ3.ZOrder
fmeQ3.Visible = True
End If
Case q2 = 1
fmeQ2.Visible = False
fmeQ3.ZOrder
fmeQ3.Visible = True
End Select
End Sub
Private Sub cmd3back_Click( )
fmeQ3.Visible = False
fmeQ2.ZOrder
fmeQ2.Visible = True
End Sub
Private Sub cmd3finish_Clic k()
Dim q3 As Integer
If opt3c.Value = True Then
q3 = 1
MsgBox ("Your score is " & q1 + q2 + q3), vbExclamation + vbOKOnly, "Congrats"
End
Else
MsgBox ("Your score is " & q1 + q2 + q3), vbExclamation + vbOKOnly, "Congrats"
End
End If
End Sub
Private Sub cmdStart_Click( )
fmeMain.Visible = False
fmeQ1.ZOrder
fmeQ1.Visible = True
End Sub
Private Sub cmd1next_Click( )
Dim q1 As Integer
Select Case True
Case q1 = 0
If opt1b.Value = True Then
q1 = 1
fmeQ1.Visible = False
fmeQ2.ZOrder
fmeQ2.Visible = True
Else
fmeQ1.Visible = False
fmeQ2.ZOrder
fmeQ2.Visible = True
End If
Case q1 = 1
fmeQ1.Visible = False
fmeQ2.ZOrder
fmeQ2.Visible = True
End Select
End Sub
this is my entire code for the program.. this is an mock exam i made in vb6. as the title says i want it to place the exact score in the title box. however it only tells the score in the last frame
fmeMain.Visible = True
fmeMain.ZOrder
fmeQ1.Visible = False
End Sub
Private Sub cmd2back_Click( )
fmeQ2.Visible = False
fmeQ1.ZOrder
fmeQ1.Visible = True
End Sub
Private Sub cmd2next_Click( )
Dim q2 As Integer
Select Case True
Case q2 = 0
If opt2a.Value = True Then
q2 = 1
fmeQ2.Visible = False
fmeQ3.ZOrder
fmeQ3.Visible = True
Else
fmeQ2.Visible = False
fmeQ3.ZOrder
fmeQ3.Visible = True
End If
Case q2 = 1
fmeQ2.Visible = False
fmeQ3.ZOrder
fmeQ3.Visible = True
End Select
End Sub
Private Sub cmd3back_Click( )
fmeQ3.Visible = False
fmeQ2.ZOrder
fmeQ2.Visible = True
End Sub
Private Sub cmd3finish_Clic k()
Dim q3 As Integer
If opt3c.Value = True Then
q3 = 1
MsgBox ("Your score is " & q1 + q2 + q3), vbExclamation + vbOKOnly, "Congrats"
End
Else
MsgBox ("Your score is " & q1 + q2 + q3), vbExclamation + vbOKOnly, "Congrats"
End
End If
End Sub
Private Sub cmdStart_Click( )
fmeMain.Visible = False
fmeQ1.ZOrder
fmeQ1.Visible = True
End Sub
Private Sub cmd1next_Click( )
Dim q1 As Integer
Select Case True
Case q1 = 0
If opt1b.Value = True Then
q1 = 1
fmeQ1.Visible = False
fmeQ2.ZOrder
fmeQ2.Visible = True
Else
fmeQ1.Visible = False
fmeQ2.ZOrder
fmeQ2.Visible = True
End If
Case q1 = 1
fmeQ1.Visible = False
fmeQ2.ZOrder
fmeQ2.Visible = True
End Select
End Sub
this is my entire code for the program.. this is an mock exam i made in vb6. as the title says i want it to place the exact score in the title box. however it only tells the score in the last frame
Comment