03-05-2003, 11:43 PM
Don't use "IF" in such cases. Better take "Select Case". Here ya go:
"Select case" is times faster than "if" if you want to compare a variable not only one time with some values.
Code:
Key$=IINKEY$
SELECT CASE Key$
CASE "W": Way$ = "North"
CASE "S": Way$ = "South"
CASE "A": Way$ = "West"
CASE "D": Way$ = "East"
END SELECT
B 4 EVER