1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Dim test As String
Dim bool As Boolean
Dim message As String
bool = False
While bool = False
test = InputBox("Entrez le montant du nouveau frais fixe " & Chr(13) & Chr(10) & " Seulement des nombres", "Ajout de donnée")
If test = "" Then
message = MessageBox.Show("Valeur vide ou appui sur la touche cancel", "Attention", MessageBoxButtons.YesNo)
If message = 6 Then
bool = True
End If
Else
Try
Integer.Parse(test)
bool = True
Catch ex As Exception
bool = False
End Try
End If
End While |