bas7advr.hlp (
Topic list)
POINT Function Details
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
The POINT function returns the current horizontal or vertical position of
the graphics cursor or, alternatively, the current color of a specified
pixel in the viewport.
POINT {(number%) | (x%,y%)}
Usage Notes
■ When (x%,y%) are used to specify a pixel, the POINT function
returns the color number of the indicated pixel. The expressions
x% and y% are viewport coordinates (if no VIEW statement has been
executed, or the most recently executed VIEW statement has no
arguments, the viewport coordinates are the same as the absolute
screen coordinates).
■ The meaning of the color number returned as well as the valid range
of values for x% and y% depend on the current screen mode established
by the most recently executed SCREEN statement. If the specified
pixel is out of range, POINT returns the value -1.