OWBasic for Pocketviewer

Home INTRO Group GRAPHIC Alphabetical Index

Test if Coordinates are in a Window

INSIDE!(x%,y%,x1%,y1%,x2%,y2%)

Checks, if the values x and y are coordinates within the window defined by the upper left corner (x1,y1) and the lower right corner (x2,y2). Returns TRUE if the coordinates are inside the window, FALSE otherwise.

The function is equivalent to the boolean expression

(x>=x1) AND (x<=x2) AND (y>=y1) AND (y<=y2)


Home INTRO Group GRAPHIC Alphabetical Index