Routine QUIT

! SUBTRACT

! Practice subtracting numbers

LIBRARY "..\Quit.tru"
DECLARE DEF Quit

RANDOMIZE

I got a message
Undefined routine quit in Main module.
I can't find a quit routine anywhere. This code excerpt is from SUBTRACT.TRU in the Discovery Pak.
I have True Basic Silver, I don't know what version. It is not given in the About.

Do I understand this correctly?
Cliff Hemming

Comments

Alternative to ..\Quit.tru

Cliff ... I have the TB program listing for Quit.tru, but there's a simpler way to terminate a running TB program in an IF - THEN program line. I have used the line:

IF x$="quit" then STOP

STOP terminates the program it's in.

I frequently use the STOP statement when I'm testing TB program files I write. Regards ... Tom M