Function WhereY : Byte;
WhereY returns the current Y-coordinate of the cursor, relative to the current window. The origin is (1,1), in the upper-left corner of the window.
None.
GotoXY, WhereX, Window