qp.hlp (Table of Contents; 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.
WhereX and WhereY Functions
  Summary Details Example                                   Back
 
  Return
 
    Byte    Horizontal or vertical coordinate of cursor location
 
  Description
 
    The WhereX and WhereY functions return the current location of the
    cursor relative to the current window. WhereX returns a byte
    containing the x (horizontal) coordinate of the cursor, giving the
    current column. WhereY returns the y (vertical) coordinate, giving
    the current row.
 
    The current window may be the default window or one defined with
    the Window procedure. An x coordinate of 1 represents the leftmost
    column in a window. A y coordinate of 1 represents the uppermost
    row. The maximum value that each function may return depends on
    the current window and the current mode.
 
    The coordinates returned by WhereX and WhereY can be passed to the
    GotoXY procedure for relocating the cursor.