DataBasic Reference > Statements and Intrinsic Functions > I > INPUTERROR Statement

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

INPUTERROR Statement (DataBasic) (m618703+inputerror_s.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

INPUTERROR Statement

Prints a prompt message on the terminal status line.

Syntax

INPUTERR{OR} {message}

Syntax Elements

message is the message to be displayed; expressed as a variable name, a dynamic array reference, or a literal enclosed in quotes.

Operation

The INPUTERROR statement displays a message on the status line of the terminal. If the terminal has no status line, the message is printed on the last line of the screen. To clear the status line, execute INPUTERROR without the message parameter.

INPUTERROR is intended mainly to display a message before an INPUT@ statement, but it can be used anywhere in a program.

When used in a PRE-WRITE or PRE-DELETE file trigger, INPUTERROR aborts the file operation.

Example

VAR="PLEASE TYPE NAME IN UPPER CASE CHARACTERS"
.
INPUTERR VAR
INPUT@(10,8):NAME
INPUTERR

Prints the message contained in VAR on the status line and then prompts for the input of a name. After the input, the status line is cleared.

RealityV15.1 (MoTW) Revision 7Comment on this topic