advr.hlp (Topic list)
SCREEN Statement Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 SCREEN mode% [,[colorswitch%] [,[activepage%] [,visiblepage%]]]
 
 Usage Notes
   ■ References to the SCREEN statement are not allowed with forms and cause
     Visual Basic to generate the error message, "Invalid when forms are
     showing." Use the SCREEN object with forms. See: SCREEN Object
 
   ■ To use the SCREEN statement with forms, you must first unload or hide
     any visible forms. See: HIDE Method  UNLOAD Statement
 
   ■ If mode% is an expression rather than a constant and if you know your
     program will not use certain screen modes, you can achieve a smaller
     .EXE file by linking with one or more stub files:
 
         If Not Using Screen Modes      Link to File
         ══════════════════════════     ════════════════════════════════════
         1 or 2                         NOCGA.OBJ
         3                              NOHERC.OBJ
         4                              NOOGA.OBJ
         7, 8, 9, or 10                 NOEGA.OBJ
         11, 12, or 13                  NOVGA.OBJ
 
   ■ The argument colorswitch% is effective only for screen modes 0 and 1
     and for composite monitors:
 
         Action                 Screen Mode 0             Screen Mode 1
         ═════════════          ════════════════          ══════════════════
         Disable color          0                         A nonzero value
         Enable color           A nonzero value           0
 
 See: Adapters and Displays
      Color Attributes and Values (SCREEN)
      Screen Mode Summary