Do
userInput = InputBox("Please enter a letter")
If Asc(userInput) <65 Or (Asc(userInput) >90 And Asc(userInput) <97) Or Asc(userInput) >122 Then
MsgBox ("Please re-enter a letter")
End If
Loop Until (Asc(userInput) >=65 And (Asc(userInput) <=90) Or (Asc(userInput) >=97) And Asc(userInput) <=122)
|
REPEAT
SEND "Please enter a letter" TO DISPLAY
RECEIVE userInput FROM KEYBOARD
IF ASC(userInput) <65 OR (ASC(userInput) >90 AND ASC(userInput) <97) OR ASC(userInput) >122 THEN
SEND "Please re-enter a letter" TO DISPLAY
END IF
UNTIL (ASC(userInput) >=65 AND (ASC(userInput) <=90) OR (ASC(userInput) >=97) AND ASC(userInput) <=122) |