je voudrais savoir comment gerer les erreurs de frappe,
par exemple si dans un programme il y a le choix entre taper les touches
haut,bas,gauche ou droite du curseur ayant pour codes respectifs 338,344,337,340,en utilisant la commande "getKey()",comment faire
pour ignorer la frappe d'une autre touche par l'utilisateur?
Gestion de erreurs de frappe
4 posts
• Page 1 of 1
-
jayce
Niveau 4: MC (Membre Confirmé)- Posts: 21
- Joined: 30 Aug 2005, 00:00
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Gestion de erreurs de frappe
n'est-ce pas possible avec "When"?
-
jayce
Niveau 4: MC (Membre Confirmé)- Posts: 21
- Joined: 30 Aug 2005, 00:00
- Gender:
- Calculator(s):→ MyCalcs profile
-
jayce
Niveau 4: MC (Membre Confirmé)- Posts: 21
- Joined: 30 Aug 2005, 00:00
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Gestion de erreurs de frappe
Exemple:
Lbl a
getKey()→c
If c=337 Then
Goto a1
Else c≠337 Then
Goto a
ElseIf c=344 Then
Goto a2
Else c≠344 Then
Goto a
ElseIf c=0 Then
Goto a
EndIf
Lbl a
getKey()→c
If c=337 Then
Goto a1
Else c≠337 Then
Goto a
ElseIf c=344 Then
Goto a2
Else c≠344 Then
Goto a
ElseIf c=0 Then
Goto a
EndIf
-
jayce
Niveau 4: MC (Membre Confirmé)- Posts: 21
- Joined: 30 Aug 2005, 00:00
- Gender:
- Calculator(s):→ MyCalcs profile
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: ClaudeBot [spider] and 2 guests