home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Graphics / graphics-16000.iso / msdos / animutil / fastgfx / fg303d / exbas.arj / FGDOC / EXAMPLES / BASIC / 16-01.BAS < prev    next >
Encoding:
BASIC Source File  |  1993-09-30  |  286 b   |  18 lines

  1. REM $INCLUDE: 'fastgraf.bi'
  2.  
  3. DEFINT A-Z
  4.  
  5. DIM KeyCode AS STRING*1
  6. DIM AuxCode AS STRING*1
  7.  
  8. Seconds& = 0
  9.  
  10. DO
  11.    FGwaitfor 91
  12.    Seconds& = Seconds& + 5
  13.    PRINT Seconds&; "seconds have elapsed."
  14.    FGintkey KeyCode, AuxCode
  15. LOOP WHILE ASC(KeyCode)+ASC(AuxCode) = 0
  16.  
  17. END
  18.