[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
userpage » WhatLinksHere » DOSGfx » BeginnersGuideToVB » thunks » ASPNET » Memory » CSharpDefault » The GPRMC Sentence » QbasicFAQ_OtherCompilers » QbasicFAQ_Input
Displaying differences between revision 1 and the latest revision


[font=arial][size=2][b]How do I use INPUT$[/b][/size][/font][br]

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.

[code]
A$ = INPUT$(1)[/code]

The above resume after one key press, and the [[buffer]] will hold that key code.

[italic]Remember that INPUT$ will resume execution after the number of designated keys have been pressed. - No enter key is necessary.
[/italic]



last edited (December 9, 2002) by KDivad Leahcim, Number of views: 3271, Current Rev: 2 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Site Management by Lars Hagelin at Kontantkort.se.