GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Download
  • News
  • Community
  • Resources
  • Language Reference
  • SmallBASIC Manual

This view

  • Original page
  • New address

GeezerVison is showing smallbasic.github.io — SmallBASIC | STOP

Edit History

STOP

STOP [error]

Home > Reference > Language

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   anball 1.0.bas   anomail.bas   Balleta 2-11-15.bas   biorythms.bas   blackbox.bas   Blackbox.bas   Calendar.bas   calendar.bas   checkers.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   Nice To Be Here.bas   nim.bas   pdocview.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  
This page was last edited on Sun, 20 Aug 2023 16:34:01 +0200 | Markdown processed with pandoc 3.1.12.1
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.