bas7advr.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 Details
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
The SCREEN function returns an ASCII character code or a color code from
a specified screen character location.
 
SCREEN (line%,column% [,colorflag%])
 
Usage Notes
    ■ If the character at (10,10) is A, the following statement would
      return 65, the ASCII code for A, to the variable X:
 
        X = SCREEN(10,10)
 
    ■ Note: In graphics screen modes, if the pattern on the screen at the
      given character location does not exactly match any pattern in the
      current ASCII character set, the SCREEN function returns the ASCII
      code for a space. If colorflag% is nonzero, the SCREEN returns 0.