basic.inputerr

Statement/BASIC Program, Releases: AP and R83

Used with 'input' to display error message on status line.

Syntax

inputerr string.expression

Description

displays a message on the 'status' (bottom) line of the terminal.

If 'inputerr' is used in a subroutine call from UP, the item cannot be filed if an error exists. In this case, control returns to the UP input screen.

Example

This program has a single valid entry, 'e'. If any other string is
entered, the string 'Entry error' displays on the error message line.

string=''
prompt ''
loop
crt @(0,10):
input string,5
until string='e' do
inputerr 'Entry error'
repeat

See Also

Command Name Type Description
basic.statements Definition Definition of statements and functions.
basic.inputnull Statement Defines null input character for input @.
basic.inputtrap.goto Statement Sets trap for input@ statement subroutine branches.
basic.string.expression Definition An expression which evaluates to a string.
basic.inputtrap.gosub Statement Sets trap for input@ statement subroutine branches.
pc.call Processing Code Calls Pick/BASIC subroutine from dictionary.
pc.callx Processing Code Calls Pick/BASIC subroutine any time an item is filed.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.