qbasic.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SCREEN Function
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Returns the ASCII value or color attribute of a character at a specified
screen location.
 
SCREEN (row%,column% [,colorflag%])
 
    ■ row%          The row coordinate of a character.
    ■ column%       The column coordinate of a character.
    ■ colorflag%    A value (0 or 1) that specifies what is returned.
 
                    Value             Returns
                    ══════════════    ════════════════════════════════
                    0 (or omitted)    The character's ASCII code.
                    1                 The character's color attribute.
 
Example:
    CLS
    PRINT "Hello"
    PRINT "The ASCII value of character at 1,1 is"; SCREEN(1, 1)
 
See Also    POINT    SCREEN Statement
            ASCII Character Codes    Color Attributes and Values