qbasic.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
VIEW PRINT Statement
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Sets the boundaries of the screen text viewport.
 
VIEW PRINT [toprow% TO bottomrow%]
 
    ■ toprow%       The number of the top row of the text viewport.
    ■ bottomrow%    The number of the bottom row of the text viewport.
 
    ■ If you omit the toprow% and bottomrow% arguments, VIEW PRINT sets the
      entire screen as the text viewport.
    ■ Ranges for toprow% and bottomrow% depend on the screen mode.
 
Example:
    VIEW PRINT 10 TO 15
    FOR i% = 1 TO 100      'Output will scroll.
        PRINT i%
    NEXT i%
 
See Also    CLS    LOCATE    PRINT, LPRINT    SCREEN    WIDTH
            Screen Modes