Method XbpMLE():charFromLine() Foundation

Determines the position of the first character in the specified row within the edit buffer.

:charFromLine( [<nLine>] ) --> nPos
<nLine> is a numeric value specifying the number of the row whose start position in the edit buffer is returned. If the parameter is not included, this method determines the start position of the row where the cursor is currently located.

This method returns a numeric value indicating the start position of the row within the edit buffer.


The method :charFromLine() determines the position within the edit buffer of the first character in a row based on the row number. The ordinal position of the row is passed to the method. Row numbers begin with one. The position of the start of the current row (the row in which the cursor is currently located) is returned if the method is called without specifying a parameter.

The method :charFromLine() is similar to the function MlPos().


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.