Alors voila j'ai un erreur dans mon code et voici l'erreur (suite apres les images)


Je ne comprends pas pourquoi cette erreur mais bref si quelqu'un pourrais m'aider et par de meme corriger mon code ce serais apprécier:
<----Début
Option Explicit
'Danny Doiron
'Examen Similaire à la S.A.A.Q.
'v. 0.01
'Knight Animation Studios
'http://www.knightanimationstudios.com
Dim numéro As Integer, résulat As Integer, total As Integer, un As Boolean, deux As Boolean, trois As Boolean, quatre As Boolean, cinq As Boolean, six As Boolean, sept As Boolean, huit As Boolean, neuf As Boolean, dix As Boolean
Private Sub Form_Activate()
Optchoixa.Value = False
Optchoixb.Value = False
Optchoixc.Value = False
Optchoixd.Value = False
End Sub
Private Sub Form_Load()
wmp1.URL = App.Path & "F:\VB\bienvenue.wav"
wmp2.URL = App.Path & "F:\VB\welcome.wav"
wmp3.URL = App.Path & "F:\VB\bon.wav"
wmp4.URL = App.Path & "F:\VB\erreur.wav"
un = True
deux = True
trois = True
quatre = True
cinq = True
six = True
sept = True
huit = True
neuf = True
dix = True
Random
End Sub
Private Sub Random()
numéro = Int((10 * Rnd) + 1)
Question
End Sub
Private Sub Question()
If numéro = 1 And un = True Then
EtiNumero.Caption = "Question # " & numéro
Etiquestion.Caption = "Que signifi ce panneau?"
Etiquestion2.Caption = ""
Imgimage.Picture = LoadPicture("stop.bmp")
Optchoixa.Caption = "Interdiction d'effectuer un virage en ''U''."
Optchoixb.Caption = "Obligation de tourner à droite."
Optchoixc.Caption = "Dépassement Interdit."
Optchoixd.Caption = "Obligation d'arrêter." '*
un = False
ElseIf un = False Then
attente
End If
If numéro = 2 And un = True Then
Optchoixa.Value = False
Optchoixb.Value = False
Optchoixc.Value = False
Optchoixd.Value = False
EtiNumero.Caption = "Question # " & numéro
Etiquestion.Caption = "Que signifi ce panneau?"
Etiquestion2.Caption = ""
Imgimage.Picture = LoadPicture("hopital.bmp")
Optchoixa.Caption = "La proximité d'un aéroport."
Optchoixb.Caption = "La proximité d'un hopital." '*
Optchoixc.Caption = "L'interdiction de stationner."
Optchoixd.Caption = "L'obligation d'aller tout droit."
deux = False
ElseIf deux = False Then
attente
End If
If numéro = 3 And un = True Then
Optchoixa.Value = False
Optchoixb.Value = False
Optchoixc.Value = False
Optchoixd.Value = False
EtiNumero.Caption = "Question # " & numéro
Etiquestion.Caption = "Dans l'illustration suivante vous êtes la voitre ''A''"
Etiquestion2.Caption = "Vous est-il permis de dépasser la voiture ''B''"
Imgimage.Picture = LoadPicture("ill1.bmp")
Optchoixa.Caption = "Oui parce que la loi le permet."
Optchoixb.Caption = "Oui car il n'y a pas de danger."
Optchoixc.Caption = "Non cela est interdit." '*
Optchoixd.Caption = "Je l'ignore."
trois = False
ElseIf trois = False Then
attente
End If
If numéro = 4 And un = True Then
Optchoixa.Value = False
Optchoixb.Value = False
Optchoixc.Value = False
Optchoixd.Value = False
EtiNumero.Caption = "Question # " & numéro
Etiquestion.Caption = "Vous arrivez a une intersection et vous faites face"
Etiquestion2.Caption = "à un feu rouge clignotant. Vous devez alors..."
Timer2.Enabled = True
Optchoixa.Caption = "... continuez."
Optchoixb.Caption = "... ralentir."
Optchoixc.Caption = "... vérifier la circulation."
Optchoixd.Caption = "... immobiliser votre véhicule a la ligne d'arrêt." '*
quatre = False
ElseIf quatre = False Then
attente
End If
If numéro = 5 And un = True Then
Optchoixa.Value = False
Optchoixb.Value = False
Optchoixc.Value = False
Optchoixd.Value = False
EtiNumero.Caption = "Question # " & numéro
Etiquestion.Caption = "Que signifi ce panneau?"
Etiquestion2.Caption = ""
Imgimage.Picture = LoadPicture("ill3.bmp")
Optchoixa.Caption = "La hauteur maximal libre."
Optchoixb.Caption = "Obligation de tourner à droite."
Optchoixc.Caption = "La vitesse maximal permise." '*
Optchoixd.Caption = "Obligation d'arrêter."
cinq = False
ElseIf cinq = False Then
attente
End If
If numéro = 6 And un = True Then
Optchoixa.Value = False
Optchoixb.Value = False
Optchoixc.Value = False
Optchoixd.Value = False
EtiNumero.Caption = "Question # " & numéro
Etiquestion.Caption = "Est-ce que je suis obligé de céder le pasasage"
Etiquestion2.Caption = "à un véhicule d'urgence?"
Imgimage.Picture = LoadPicture()
Optchoixa.Caption = "Seulement si urgence."
Optchoixb.Caption = "Seulement si les lumières sont en fonctions."
Optchoixc.Caption = "Seulement si la sirène fonctionne."
Optchoixd.Caption = "Toutes les réponses." '*
six = False
ElseIf six = False Then
attente
End If
If numéro = 7 And un = True Then
Optchoixa.Value = False
Optchoixb.Value = False
Optchoixc.Value = False
Optchoixd.Value = False
EtiNumero.Caption = "Question # " & numéro
Etiquestion.Caption = "A-t-on le droit de conduire"
Etiquestion2.Caption = "avec un baladeur sur la tête?"
Imgimage.Picture = LoadPicture("stop.bmp")
Optchoixa.Caption = "Si la musique est basse."
Optchoixb.Caption = "Oui."
Optchoixc.Caption = "Si la police ne me voit pas."
Optchoixd.Caption = "Non" '*
sept = False
ElseIf sept = False Then
attente
End If
If numéro = 8 And un = True Then
Optchoixa.Value = False
Optchoixb.Value = False
Optchoixc.Value = False
Optchoixd.Value = False
EtiNumero.Caption = "Question # " & numéro
Etiquestion.Caption = "Avez-vous le droit de prêter votre permis"
Etiquestion2.Caption = "de conduire?"
Imgimage.Picture = LoadPicture()
Optchoixa.Caption = "Non." '*
Optchoixb.Caption = "Seulement en ville."
Optchoixc.Caption = "À mon frère jumeau seulement."
Optchoixd.Caption = "Seulement en cas d'urgence."
huit = False
ElseIf huit = False Then
attente
End If
If numéro = 9 And un = True Then
Optchoixa.Value = False
Optchoixb.Value = False
Optchoixc.Value = False
Optchoixd.Value = False
EtiNumero.Caption = "Question # " & numéro
Etiquestion.Caption = "Avez-vous le droit d'avoir un détecteur de radar?"
Etiquestion2.Caption = ""
Imgimage.Picture = LoadPicture()
Optchoixa.Caption = "Seulement en campagne."
Optchoixb.Caption = "Oui."
Optchoixc.Caption = "Non." '*
Optchoixd.Caption = "Seulement en ville."
neuf = False
ElseIf neuf = False Then
attente
End If
If numéro = 10 And un = True Then
Optchoixa.Value = False
Optchoixb.Value = False
Optchoixc.Value = False
Optchoixd.Value = False
EtiNumero.Caption = "Question # " & numéro
Etiquestion.Caption = "Qui est obligé de mettre ca ceinture de sécurité?"
Etiquestion2.Caption = ""
Imgimage.Picture = LoadPicture()
Optchoixa.Caption = "Aucun passager."
Optchoixb.Caption = "Les passager avant."
Optchoixc.Caption = "Les passager arrière."
Optchoixd.Caption = "Tous les passager d'un véhicule." '*
dix = False
ElseIf dix = False Then
attente
End If
End Sub
Private Sub Timer1_Timer()
Etiheure.Caption = "Il est présentement " & Time
End Sub
Private Sub Timer2_Timer()
Imgimage.Picture = LoadPicture("ill2b.bmp")
Timer3.Enabled = True
Timer2.Enabled = False
End Sub
Private Sub Timer3_Timer()
Imgimage.Picture = LoadPicture("ill2a.bmp")
Timer2.Enabled = True
Timer3.Enabled = False
End Sub
Private Sub QT()
If total = 10 Then
Etiresultat.Visible = True
Etiresultat.Caption = "Signalisation - Votre résultat est de : " & résulat / 10 & "%"
If résulat = 10 Then
Etiresultat.BackColor = QBColor(15)
ElseIf résulat = 8 Or résulat = 9 Then
Etiresultat.BackColor = QBColor(10)
ElseIf résulat = 7 Or résulat = 6 Or résulat = 5 Or résulat = 4 Or résulat = 3 Or résulat = 2 Or résulat = 1 Or résulat = 0 Then
Etiresultat.BackColor = QBColor(4)
End If
End If
End Sub
Private Sub Rep()
If numéro = 1 Then
If Optchoixd = True Then
MsgBox "Bonne réponse!", vbOKOnly, "Bravo"
résulat = résulat + 1
total = total + 1
attente
Else
MsgBox "Mauvaise réponse!", vbOKOnly, "Bravo"
total = total + 1
attente
End If
End If
If numéro = 2 Then
If Optchoixb = True Then
MsgBox "Bonne réponse!", vbOKOnly, "Bravo"
résulat = résulat + 1
total = total + 1
attente
Else
MsgBox "Mauvaise réponse!", vbOKOnly, "Bravo"
total = total + 1
attente
End If
End If
If numéro = 3 Then
If Optchoixc = True Then
MsgBox "Bonne réponse!", vbOKOnly, "Bravo"
résulat = résulat + 1
total = total + 1
attente
Else
MsgBox "Mauvaise réponse!", vbOKOnly, "Bravo"
total = total + 1
attente
End If
End If
If numéro = 4 Then
If Optchoixd = True Then
MsgBox "Bonne réponse!", vbOKOnly, "Bravo"
résulat = résulat + 1
total = total + 1
attente
Else
MsgBox "Mauvaise réponse!", vbOKOnly, "Bravo"
total = total + 1
attente
End If
End If
If numéro = 5 Then
If Optchoixc = True Then
MsgBox "Bonne réponse!", vbOKOnly, "Bravo"
résulat = résulat + 1
total = total + 1
attente
Else
MsgBox "Mauvaise réponse!", vbOKOnly, "Bravo"
total = total + 1
attente
End If
End If
If numéro = 6 Then
If Optchoixd = True Then
MsgBox "Bonne réponse!", vbOKOnly, "Bravo"
résulat = résulat + 1
total = total + 1
attente
Else
MsgBox "Mauvaise réponse!", vbOKOnly, "Bravo"
total = total + 1
attente
End If
End If
If numéro = 7 Then
If Optchoixd = True Then
MsgBox "Bonne réponse!", vbOKOnly, "Bravo"
résulat = résulat + 1
total = total + 1
attente
Else
MsgBox "Mauvaise réponse!", vbOKOnly, "Bravo"
total = total + 1
attente
End If
End If
If numéro = 8 Then
If Optchoixa = True Then
MsgBox "Bonne réponse!", vbOKOnly, "Bravo"
résulat = résulat + 1
total = total + 1
attente
Else
MsgBox "Mauvaise réponse!", vbOKOnly, "Bravo"
total = total + 1
attente
End If
End If
If numéro = 9 Then
If Optchoixc = True Then
MsgBox "Bonne réponse!", vbOKOnly, "Bravo"
résulat = résulat + 1
total = total + 1
attente
Else
MsgBox "Mauvaise réponse!", vbOKOnly, "Bravo"
total = total + 1
attente
End If
End If
If numéro = 10 Then
If Optchoixd = True Then
MsgBox "Bonne réponse!", vbOKOnly, "Bravo"
résulat = résulat + 1
total = total + 1
attente
Else
MsgBox "Mauvaise réponse!", vbOKOnly, "Bravo"
total = total + 1
attente
End If
End If
End Sub
Private Sub attente()
Optchoixa.Value = False
Optchoixb.Value = False
Optchoixc.Value = False
Optchoixd.Value = False
Random
End Sub
Private Sub Optchoixa_Click()
Rep
End Sub
Private Sub Optchoixb_Click()
Rep
End Sub
Private Sub Optchoixc_Click()
Rep
End Sub
Private Sub Optchoixd_Click()
Rep
End Sub
Fin-------->
alors voila.
E0091 - La modération à la programmation a bien meilleur gout!