Welcome, Guest

TOPIC: END expected

END expected 5 years 3 months ago #1102

  • KCL64
  • KCL64's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
I have the following program with two subroutines.I have an error END expected warning when I run a check. Since I don not what this program to actually end but keep looping and looking at the inputs status
Anyone explain this or tell me what I overlooked.? Thanks.

EIGN(2)
EIGN(3)
ZS
ADT=100
VT=100000
PT=50000
G
TWAIT
C10
IF IN(16)==0
GOSUB20
ENDIF
IF IN(17)==0
GOSUB30
ENDIF
GOTO(10)
C20
MP
ADT=100
VT=100000
PRT=4000
G
TWAIT
RETURN
C30
MP
ADT=100
VT=100000
PRT=-4000
G
TWAIT
RETURN
The administrator has disabled public write access.

Re: END expected 5 years 3 months ago #1104

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
The compiler is looking for the END command in your program. I've added the END command to the code below... where I think it should be.

EIGN(2)
EIGN(3)
ZS
ADT=100
VT=100000
PT=50000
G
TWAIT
C10
IF IN(16)==0
GOSUB20
ENDIF
IF IN(17)==0
GOSUB30
ENDIF
GOTO(10)
END 'This is the END command the compiler is looking for.
C20
MP
ADT=100
VT=100000
PRT=4000
G
TWAIT
RETURN
C30
MP
ADT=100
VT=100000
PRT=-4000
G
TWAIT
RETURN
The administrator has disabled public write access.
Time to create page: 0.223 seconds
Powered by Kunena Forum