◄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.