Hi,
der END Befehl muß vor der ersten SUB stehen, bei dir also hinter Loop.

Gruß
Christopher