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 | PAUSE

Edit History

PAUSE

PAUSE [secs]

Home > Reference > System

Waits for a key press, a mouse click or the optional amount of seconds secsbefore executing next statement.

PAUSE may interfere with INKEY or PEN events.

Example 1

print "Before PAUSE - press a key, mouse button or wait 5s"
pause 5
print "After PAUSE"

Example 2

' ribbons.bas SmallBASIC 0.12.2 [B+=MGA] 2016-03-24
' new and improved update of SB and Bpf posts 2015-04-16 B+

at 80,610: ? "Wait 8 secs or press any for next screen..."
const a = 127

while 1 
  for i = 0 to 9
    b = rnd^2
    c = rnd^2
    d = rnd^2
    for x = 1 to 600
      cl = RGB(a + a * sin(b * x), a + a * sin(c * x), a + a * sin(d * x))
      line x, i * 60 + 1 step 0, 60, cl
    next x
  next i
  pause 8 '<=========== pause waits 8 secs or key press
wend
Code samples using PAUSE
000 hello.bas   001 3 ways to print hello 5 times.bas   002 numeric variables.bas   003 conditional branching.bas   004 loops.bas   005 challenge.bas   006 arrays+.bas   2048.bas   3d_palmx.bas   4tune.bas   7gables.bas   A Rubens, Peter Paul Landscape.bas   agendus.bas   ai.bas   anball 1.0.bas   Balleta 2-11-15.bas   base64.bas   betrayal: crows ii.bas   biorythms.bas   blackbox.bas   Blackbox.bas   blushing snowflakes.bas   character map.bas   Charmap.bas   chart.bas   Charts.bas   checkers.bas   chess.bas   cloud.bas  
System
CHAIN   COMMAND   CWD   DELAY   ENV   ENV   EXEC   EXPORT   FRE   HOME   IMPORT   INCLUDE   MAXINT   NIL   OPTION   PAUSE   PI   PROGLINE   RANDOMIZE   RUN   SBVER   SELF   STKDUMP   TROFF   TRON   UNIT  
This page was last edited on Tue, 13 Jun 2023 12:00:24 +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.