KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q25581: Can’t Use Border Parameter of COLOR Statement on EGA, VGA Card

Article: Q25581
Product(s): See article
Version(s): 2.00 2.01 3.00 4.00 4.00b 4.50
Operating System(s): MS-DOS
Keyword(s): ENDUSER | docerr B_BasicCom | mspl13_basic
Last Modified: 8-MAR-1989

The border argument, which is the third parameter of the COLOR
statement (in SCREEN 0 only), is NOT supported on EGA, VGA, or MCGA
cards.

If you have an EGA card installed on your system, using the border
parameter of the COLOR statement causes unpredictable results in
QuickBASIC Versions 2.00, 2.01, 3.00, 4.00, 4.00b, and 4.50.

The border argument is supported in SCREEN 0 on CGA cards.

The following correction should be made on Page 222 of the "Microsoft
QuickBASIC Compiler" documentation for Versions 2.00, 2.01, and 3.00:

   The EGA card does not support the COLOR statement border parameter.

The documentation for the COLOR statement in QuickBASIC Versions 4.00,
4.00b, and 4.50 correctly states that the following cards do NOT
support the border argument of the COLOR statement:

   EGA (IBM Enhanced Graphics adapter)
   VGA (IBM Video Graphics Array adapter)
   MCGA (IBM Multicolor Graphics Array adapter)

(The same applies to BASIC compiler Versions 6.00 and 6.00b for
MS-DOS.) The border parameter of the COLOR statement is allowed only
in SCREEN 0 on the CGA card, as shown:

   COLOR foreground,background,border

The border color is used to draw the screen border.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.