Microsoft KB Archive/51604

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Knowledge Base


SCREEN Function Doesn't Give Color Attribute in Graphics Mode

Article ID: 51604

Article Last Modified on 11/21/2006

This article was previously published under Q51604

SUMMARY

In graphics mode, the number of the color returned by the SCREEN function will always have a value of 0 (zero).

This information applies to Microsoft QuickBasic Versions 1.00, 1.01, 1.02, 2.00, 2.01, 3.00, 4.00, 4.00b, and 4.50 for MS-DOS and to Microsoft Basic Compiler Versions 6.00, 6.00b, and 7.00 for MS-DOS and MS OS/2.

MORE INFORMATION

The SCREEN function has the following syntax:

   SCREEN (row,column[,colorflag])
                

When colorflag is nonzero, SCREEN returns the number of the color at the location specified by row and column -- but only in text mode.

When colorflag is zero or absent, the ASCII code of the character at the specified location is returned as an integer in both graphics and text modes.


Additional query words: QuickBas BasicCom

Keywords: KB51604