basic.error Statement/BASIC Program

basic.error

Command basic.error Statement/BASIC Program
Applicable release versions: AP
Category BASIC Program (486)
Description displays the error message from the "messages" file and continues execution of the program.

The parameter{s} are passed to the error message handler and displayed according to the requirements of the item in the "messages" file.
Syntax error message.number,"parameter"{,"parameter"...}
Options
Example
read item from cust.file,"test" else
  error 202,"test"
 end

The "error" statement in this example displays:

[202] 'test' is not on file.
Purpose
Related basic.statements
basic.abort
basic.stop
basic.open
tcl.print-err
filename.messages
tcl.print-error