1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| Private ValeurOption As String
Private Sub OptionButton1_Click()
ValeurOption = OptionButton1.Caption
End Sub
Private Sub OptionButton2_Click()
ValeurOption = OptionButton2.Caption
End Sub
Private Sub OptionButton3_Click()
ValeurOption = OptionButton3.Caption
End Sub
Private Sub MonBouton_Click()
Select Case ValeurOption
Case "Yeux bruns"
' Dis bonjour
Case "Cheveux courts"
' Un petit shampoing suffit...
Case "Porte des lunettes"
' Écris plus gros
Case Else
' Si aucun, va faire un tour...
End Select
End Sub |
Partager