Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: END expected

END expected 3 years, 2 months ago #1102

  • KCL64
  • OFFLINE
  • 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

Re: END expected 3 years, 2 months ago #1104

  • csearcy
  • OFFLINE
  • Posts: 480
  • 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
  • Page:
  • 1
Moderators: hsummer, csearcy
Time to create page: 0.39 seconds