YPOS

n = YPOS

Returns the current Y-position of the text cursor in “characters”.

See XPOS for X-position.

Example

locate 10,5
print XPOS, YPOS        ' Output 5   10