WIDTH - QB64 Wiki

WIDTH

From QB64 Wiki

Jump to: navigation, search

The WIDTH statement changes the text dimensions of certain SCREEN modes.


SCREEN

Contents

Syntax

WIDTH [columns%][, rows%]

File

Syntax

WIDTH {file_number | device}, columnwidth%

LPRINT

==Syntax== (not supported in QB64):

WIDTH LPRINT columnwidth%


Parameters

  • When parameters are not specified, columns defaults to 80 with 25 (30 in SCREEN 11 or 12) rows.


Usage:

  • WIDTH should be used AFTER a program SCREEN statement! It does not affect screen graphics or graphic coordinates.
  • Affects SCREEN 0 Window size and alters the text block size of each screen mode listed in Qbasic:
  • SCREEN 0 can use 80 or 40 columns and 25, 43 or 50 rows. Default is WIDTH 80, 25.
  • SCREEN 9 can use 80 columns and 25 or 43(not supported on many monitors) rows. Default WIDTH 80, 25 fullscreen.
  • SCREEN 10 can use 80 columns and 25 or 43 rows. Default is WIDTH 80, 25 fullscreen.
  • SCREEN 11 and 12 can use 80 columns and 30 or 60 rows. Default is WIDTH 80, 30 fullscreen.


Qbasic or QuickBasic:

  • Devices opened with an OPEN statement include LPT1 and CONS in Qbasic ONLY.
  • Only the column width(default 80) can be specified in the file or LPRINT syntax.


See also



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
Personal tools