SUB without END SUB, Tried to declare SUB within a SUB, SUB already defined, Missing STATIC in SUB statement, EXIT SUB outside of a subprogram, SHARED outside of a subprogram
Commodore Amiga
Severity: MinorWhat it means
Commodore's manual lists these under errors reported before program execution begins.
SUB without END SUB: a subprogram has no end.
Missing STATIC in SUB statement: the word STATIC is needed at the end of the SUB line.
Tried to declare SUB within a SUB: subprograms can't stand inside each other.
SUB already defined: two have the same name.
EXIT SUB, or SHARED, outside of a subprogram: they only work inside one.
Affected Models
- Amiga computers with Amiga BASIC, written by Microsoft for Commodore
How to Fix It
-
Check that each SUB line ends with STATIC, and that END SUB comes before the next SUB.
-
Give each subprogram its own name.