home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / compiler / sample1.bas < prev    next >
BASIC Source File  |  1993-11-08  |  579b  |  29 lines

  1.  
  2.  
  3. rem
  4. rem Example of Program to print HELLO on screen.
  5. rem
  6. rem This program has waits for input before stopping.
  7. rem We are waiting for input because in Windows, when program stops
  8. rem the window is erased and we couldn't see the Hello.
  9. rem
  10. rem This program uses a function unique to BasicBasic.  This is the
  11. rem function OSTYPE.  This function returns a 1 if DOS or a 2 if running
  12. rem under Windows.
  13. rem
  14.  
  15.  
  16.  
  17.     print "Hello!"
  18.  
  19.     if ostype=1 then
  20.       print
  21.       print "Press any key to continue..."
  22.     end if
  23.  
  24.     do while inkey$=""
  25.     loop
  26.  
  27.  
  28.  
  29.