.. highlightlang:: us .. index:: EdGetLineFromPos .. _edgetlinefrompos: EdGetLineFromPos ================ .. us.tag EdGetLineFromPos EdGet New400 :ref:`EdGetLineFromPos` returns the line number for the given position. .. function:: nLine = EdGetLineFromPos(hEdit, nPos) .. us.return **Return Value** *nLine* is the line number. .. us.params **Parameters** .. uparam:: hEdit Identifies the editor. .. uparam:: nPos *nPos* is the position. The position is the number of characters from the beginning of the file. .. seealso:: :ref:`overview-editors`, :ref:`EdGetPosFromLine`, :ref:`EdGetCurrentPos`, :ref:`EdGetCursorPos` :sub:`id-1393186`