QBasic 1.1: SCREEN Statement
Explanation
SCREEN Statement
Sets the screen mode and other characteristics of your screen.
Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
Syntax
SCREEN mode% [,[colorswitch%] [,[activepage%] [,visualpage%]]] |
Description / Parameter(s)
mode% |
Sets the screen mode. See Screen Modes. |
colorswitch% |
A value (0 or 1) that switches between color and monocolor display (modes 0 and 1 only): |
|
Mode | Value | Action |
0 | 0 | Disables color |
0 | Nonzero | Enables color |
1 | 0 | Enables color |
1 | Nonzero | Disables color |
|
activepage% |
The screen page that text or graphics output writes to. |
visualpage% |
The screen page that is currently displayed on your screen. |
Example
'This example requires a color graphics adapter.
SCREEN 1 '320 x 200 graphics
LINE (110, 70)-(190, 120), , B
LINE (0, 0)-(320, 200), 3, , &HFF00