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.
Reality V15.0 ()
INPUTERROR Statement (DataBasic) (m618703+inputerror_s.htm)
Prints a prompt message on the terminal status line.
INPUTERR{OR} {message}
message is the message to be displayed; expressed as a variable name, a dynamic array reference, or a literal enclosed in quotes.
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.
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.