09-21-2025, 03:36 PM
Just wanted to clarify using Input$, in particular Input$(1). I was thinking Input$(1) would accept 1 input from the keyboard so in this case I have a Menu with 3 choices, my code reads
_Keyclear
Abort$=Input$(1)
ABrt = val(Abort$)
Select Case ABrt
etc
however no matter which number from the menu I chose the Abort$ was "" and ABrt = 0. I did use _Keyclear before the Input$(1) but came up with the same result. Eventually I found the correct entry for Input$(1) was 01, or 02, or 03. Using these two digits and the program flow moved on.
Interestly, IF I used Input$(2), which would not take a single digit, if I entered 01, or 02, or 03 the program flow would NOT move on unless I pressed ENTER.
The screens I'm using are graph screens (ie 1900,900,32) and the examples in the WIKI appear to be for a text screen or Pete's screen. Not sure if that may alter Input$(1) from accepting a single digit input from the keyboard or not.
Also, I am using Input$(2) in other subroutines of the same program where the inputs are mostly 2 digits and it works fine in terms of entering a two digit number and the program flow moves onto the next task without using ENTER. But there I don't use the _Keyclear before the inputs, could it be once you establish Input$ as (2) it must remain a (2)?
_Keyclear
Abort$=Input$(1)
ABrt = val(Abort$)
Select Case ABrt
etc
however no matter which number from the menu I chose the Abort$ was "" and ABrt = 0. I did use _Keyclear before the Input$(1) but came up with the same result. Eventually I found the correct entry for Input$(1) was 01, or 02, or 03. Using these two digits and the program flow moved on.
Interestly, IF I used Input$(2), which would not take a single digit, if I entered 01, or 02, or 03 the program flow would NOT move on unless I pressed ENTER.
The screens I'm using are graph screens (ie 1900,900,32) and the examples in the WIKI appear to be for a text screen or Pete's screen. Not sure if that may alter Input$(1) from accepting a single digit input from the keyboard or not.
Also, I am using Input$(2) in other subroutines of the same program where the inputs are mostly 2 digits and it works fine in terms of entering a two digit number and the program flow moves onto the next task without using ENTER. But there I don't use the _Keyclear before the inputs, could it be once you establish Input$ as (2) it must remain a (2)?

