home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 63 / CDACTUAL63.iso / Aplicaciones / DarkBasic / DemoDarkBasic.exe / help / examples / flow / exam09.dba < prev    next >
Encoding:
Text File  |  2000-01-24  |  849 b   |  36 lines

  1. Rem * Title  : SYNC Commands
  2. Rem * Author : DBS-MB
  3. Rem * Date   : 1st August 99
  4. rem ===========================================================
  5. rem DARK BASIC EXAMPLE PROGRAM 9
  6. rem ===========================================================
  7. rem This program will show you how to use the sync command
  8. rem -----------------------------------------------------------
  9.  
  10. rem Set the ink to white and paper color to black 
  11. ink rgb(244,214,210),1
  12.     
  13. rem If you use the SYNC ON command 
  14. rem then you must use a SYNC to tell the computer to update the screen
  15. rem if you do not use sync then the computer will lock up
  16.  
  17. rem Activate manual sync
  18. sync rate 30
  19. sync on
  20.  
  21. do
  22.     
  23.     rem Print Some things to the screen
  24.     print "hello, ";
  25.     print "how are you, ";
  26.     print "nice day?"
  27.  
  28.     rem Update screen
  29.     sync
  30.  
  31. loop
  32.  
  33. rem End of program
  34. end
  35.  
  36.