home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / basic / library / tb / tbscreen / demo-tb.bas next >
BASIC Source File  |  1987-11-03  |  640b  |  33 lines

  1. 'Demo-Tb.Bas - demonstrates saving and restoring the screen in Turbo Basic
  2.  
  3. Defint A-Z
  4. Dim Dynamic Storage(1999)
  5.  
  6. FirstLine = 1
  7. LastLine  = 5
  8.  
  9. Cls
  10. For X = 1 To 15
  11.     Color X
  12.     Print String$(80, X + 64);
  13. Next
  14.  
  15. Locate 20
  16. Print "Press a key to save the screen";
  17. While Inkey$ = "" : Wend
  18.  
  19. Call ScrnSave(FirstLine, LastLine, Storage(0))
  20.  
  21. Cls
  22. Print "Press a key to restore the top";
  23. While Inkey$ = "" : Wend
  24. Call ScrnRest(FirstLine, LastLine, Storage(0))
  25.  
  26. Sub ScrnSave Inline
  27.     $Inline "Save-TB.Bin"
  28. End Sub
  29.  
  30. Sub ScrnRest Inline
  31.     $Inline "Rest-TB.Bin"
  32. End Sub
  33.