11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

INPUT @<br />

Syntax<br />

INPUT @ (col,row | option) [ , | : ] var [,length] [ _ ] [mask] [{FOR | WAITING}<br />

time.expr] [UNFILTERED] [THEN statements | ELSE statements]<br />

Description<br />

The <strong>UniBasic</strong> INPUT @ command places the cursor at a specific location on the<br />

terminal screen and prompts the user for input. INPUT @ supports multibyte<br />

languages.<br />

Tip: The <strong>UniBasic</strong> @ function also positions the cursor on the terminal screen, but<br />

does not accept input as does INPUT @.<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),<br />

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

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

col,row Specifies the column and row on the screen at which the cursor is to<br />

be placed for input.<br />

: Normally, when you type a value and press ENTER in response to an<br />

INPUT statement, UniData issues a line feed. The : parameter inhibits<br />

this line feed.<br />

var Specifies a variable to receive the input data.<br />

,length Specifies the maximum number of characters accepted.<br />

INPUT @ Parameters<br />

INPUT @ 1-386

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

Saved successfully!

Ooh no, something went wrong!