3, RETURN WITHOUT GOSUB
Commodore Amiga
Severity: MinorWhat it means
Amiga BASIC error 3.
Commodore's manual: a RETURN statement is encountered for which there is no previous, unmatched GOSUB statement.
Affected Models
- Amiga computers with Amiga BASIC, written by Microsoft for Commodore
How to Fix It
-
Put END before the first subroutine, so that the main program doesn't run on into it.
-
Check that each subroutine is reached with GOSUB, and not with GOTO.