[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
QbasicFAQ_Input
How do I use INPUT$
Back to QBasic FAQ Main Page.
Although used primarily for reading a specific number of characters from a device, (like a file), INPUT$ can also be used for getting a key press or several key presses.
The above resume after one key press, and the buffer will hold that key code.
Remember that INPUT$ will resume execution after the number of designated keys have been pressed. - No enter key is necessary.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
QbasicFAQ_Input
How do I use INPUT$
Back to QBasic FAQ Main Page.
Although used primarily for reading a specific number of characters from a device, (like a file), INPUT$ can also be used for getting a key press or several key presses.
A$ = INPUT$(1)
The above resume after one key press, and the buffer will hold that key code.
Remember that INPUT$ will resume execution after the number of designated keys have been pressed. - No enter key is necessary.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
