AT&T 6300 Programmer's Manual page 57

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

Getting Started
For example, running a program which
contains:
100 FOR K=
will cause:
Missing operand in 100
OK
If an error occurs and the error trapping is
enabled (programmed interrupt), program
execution is transferred to the line specified by
the ON ERROR statement.
An error trapping routine should check for all
the particular errors that the user wishes to
recover from, and should specify the course of
action to be taken in each case.
This involves either correcting the error, and
resuming execution at a specified statement
or; returning to Command Level.
Example
10 ON ERROR GOTO 100
20 INPUT "WHAT IS YOUR BET";B
30 IF B>5000 THEN ERROR 200
2-39

Advertisement

Table of Contents
loading

Table of Contents