3, RETURN WITHOUT GOSUB

Commodore Amiga

Severity: Minor

What 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

  1. Put END before the first subroutine, so that the main program doesn't run on into it.

  2. Check that each subroutine is reached with GOSUB, and not with GOTO.