Function MPostoLc() Foundation
Determines the row and column position from a character position.
MPostoLc( <cString> , ;
<nLineLen> , ;
<nPosition>, ;
[<nTabSize>], ;
[<lWrap>] ) --> aRowCol
The return value of MPostoLc() is an array containing two elements whose values indicate the row and column position ({nRow,nCol}) corresponding to the character at the specified position <nPosition>.
The memo function MPostoLc() calculates the row and column position of a character from its absolute position within <cString>. It is the counterpart of the function MlCtoPos(). The row and column positions are returned in an array ({nRow,nCol}). The counter for the row begins with one, and the counter for the column begins with zero. The absolute position <nPosition> also begins with one and can be determined using other character functions like SubStr() or At().
The function MPostoLc() is often used with MlCtoPos(). They might be used to program text search routines for MemoEdit(), for example.
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.