STOP
STOP [error]
Terminates execution of a program, closes all files opened by the
program, and returns control to the operating system. The optional
number error
will be returned to the operating system; if
not specified SmallBASIC returns 0
. On Windows, the
error
value is known as ERRORLEVEL.
Example 1
print "Hello world"
stop
print "This will never be printed"
Example 2
print "Type exit to stop program"
while (true)
input "INPUT: ", s
if(s == "exit") then stop
print "You typed: ";s
wend
Code samples using STOP
003 conditional branching.bas
2048.bas
2048.bas
anball 1.0.bas
anomail.bas
Balleta 2-11-15.bas
biorythms.bas
blackbox.bas
Blackbox.bas
Calendar.bas
calendar.bas
checkers.bas
checkers.bas
chess.bas
chess.bas
colors1.bas
dogstar5.bas
easter_mallen.bas
Factor.bas
first factors mga.bas
gui_cal.bas
hopalong copy.bas
hopalong.bas
index.bas
irc-bot.bas
lander.bas
lissajous2.bas
memory match game.bas
My Song.bas
Language
AND
AS
BAND
BG
BOR
BYREF
CALL
CASE
CATCH
CONST
DECLARE
DEF
DO
ELIF
ELSE
ELSEIF
END
END TRY
ENDIF
EQV
EXIT
FALSE
FI
FOR
FUNC
GOSUB
GOTO
IF
IFF
IMP
IN
LABEL
LET
LIKE
LOCAL
LSHIFT
MDL
MOD
NAND
NEXT
NOR
NOT
ON
OR
REM
REPEAT
RETURN
RSHIFT
SELECT
STEP
STOP
SUB
THEN
THROW
TO
TRUE
TRY
UNTIL
USE
USG
USING
WEND
WHILE
XNOR
XOR
If there is insufficient information on this page and you wish learn more about STOP,
please send an email to smallbasic@gmail.com. You can help to improve information about
STOP by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.