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.
POINT Function Details
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
POINT {(number%) | (x%,y%)}
Usage Notes
■ References to the POINT function are not allowed with forms and cause
Visual Basic to generate the error message, "Invalid when forms are
showing." Use the HIDE method to hide any visible forms or controls
before executing this function. See: ◄HIDE Method►
■ 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.
See: ◄VIEW Statement►
■ 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. See: ◄SCREEN Statement►