11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CLEARINPUT<br />

Syntax<br />

CLEARINPUT<br />

Synonym<br />

INPUTCLEAR<br />

Description<br />

The <strong>UniBasic</strong> CLEARINPUT command clears the terminal type-ahead buffer so the<br />

next INPUT statement forces a response from the user.<br />

Example<br />

In the following example, the CLEARINPUT statement clears the terminal typeahead<br />

buffer so the user must respond to the prompt:<br />

1-147 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

CLEARINPUT<br />

PRINT "DO YOU WANT TO DELETE THIS FILE?(Y OR N)"; INPUT X,1<br />

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

CLEARDATA, INPUT, SYSTEM

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!