Posted: Sun Jan 27, 2008 8:36 pm
Your number is printed many times because it is using a semicolon after a PRINT that is not LOCATEd. What key is code 2 or 3 anyhow? You would need 128 cases for just keypresses alone!
The idea to learn INP(&H60) is to find out what keypress creates what code.
You can find many of the keys with 2 byte ASCII codes like CHR$(0) + CHR(asciicode) using INKEY instead. Try the arrow keys.
Ted
The idea to learn INP(&H60) is to find out what keypress creates what code.
You can find many of the keys with 2 byte ASCII codes like CHR$(0) + CHR(asciicode) using INKEY instead. Try the arrow keys.
Ted