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.

INPUT<br />

Syntax<br />

INPUT var [,length [ _ ]] [:] [{FOR | WAITING} time.expr] [UNFILTERED]<br />

[THEN statements | ELSE statements]<br />

INPUT var [,-l] [{FOR | WAITING} time.expr] [UNFILTERED] [THEN<br />

statements | ELSE statements]<br />

Description<br />

The <strong>UniBasic</strong> INPUT command requests data from an input queue or from the<br />

terminal screen. INPUT supports multibyte languages.<br />

If INPUT is successful, UniData sets @SYSTEM.RETURN.CODE to 0. If unsuccessful<br />

(the INPUT statement with a FOR or WAITING clause timed out), UniData<br />

sets @SYSTEM.RETURN.CODE to -1.<br />

One variable is read by each INPUT statement. If you press ENTER in response to<br />

an INPUT statement, an empty string is assigned to the variable.<br />

Tip: Precede INPUT with a PRINT statement to display a prompt.<br />

UDT.OPTIONS 83 enables the escape character (usually ASCII code 27) to be<br />

accepted by INPUT while screening out or converting other control characters.<br />

THEN | ELSE is associated with the WAITING clause except in the case described<br />

in the following warning note.<br />

INPUT 1-382

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

Saved successfully!

Ooh no, something went wrong!