Microsoft KB Archive/25581

= Can't Use Border Parameter of COLOR Statement on EGA, VGA Card =

Article ID: 25581

Article Last Modified on 11/21/2006



This article was previously published under Q25581



SUMMARY
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 Microsoft QuickBasic versions 2.0, 2.01, 3.0, 4.0, 4.0b, and 4.5.

The border argument of the COLOR statement is supported in SCREEN 0 only on CGA cards.

To work around this limitation and obtain a border on EGA and VGA cards, you can call a BIOS interrupt as explained in a separate article found with the following query:

border and EGA and interrupt and QuickBasic



MORE INFORMATION
The following correction should be made on page 222 of the "Microsoft QuickBasic Compiler" documentation for versions 2.0, 2.01, and 3.0:

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

The documentation for the COLOR statement in QuickBasic versions 4.0, 4.0b, and 4.5 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 adapter)
 * MCGA (IBM multicolor graphics array adapter)

(The same applies to Basic compiler versions 6.0 and 6.0b 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.

Additional query words: QuickBas BasicCom 2.00 3.00 4.00 4.00b 4.50 6.00 6.00b

Keywords: KB25581

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.