•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The GFA-Basic Compendium
Author      : GFA Systemtechnik GmbH
Version     : GFABasic.HYP v2.98 (12/31/2023)
Subject     : Documentation/Programming
Nodes       : 899
Index Size  : 28056
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Document not found
@help       : Help
@options    : +g -i -s +z
@width      : 75
@hostname   : STRNGSRV
@hostname   : CAB     
@hostname   : HIGHWIRE
@hostname   : THING   
View Ref-FilePAUSE x
DELAY x

x: aexp

The command PAUSE suspends program execution for x/50 seconds. DELAY has a
similar effect but the argument x is specified in seconds with a theoretical
resolution in milliseconds. DELAY uses the GEM routine EVNT_TIMER() and is,
therefore, recommended for use in GEM programs.

DELAY -> x is specified in seconds -> EVNT_TIMER()

PAUSE -> x is specified as one 50th of a second -> TIMER (Timer B)
         50 = 1 second

Example:

    PRINT "start"
    PAUSE 100
    PRINT "a pause"
    DELAY 2
    PRINT "end"

--> The text 'start' appears then, two seconds later the further message 'a
    pause' is displayed. This is followed after a further two seconds by 'end'.

Memo: DELAY seems to make the mouse pointer appear even if previously
      hidden with HIDEM.

evnt_timer()+