TerAbsToRowCol
Convert the given character position to the row and column position
void TerAbsToRowCol( abs)
int abs; | character position (0 based) from the beginning of the file. |
Upon a successful return from this method, the following information can be retrieved by using TerGetOutInt method:
int row; | To retrieve this value after a successful return from this method: row=tej.TerGetOutInt("Line"); |
int col; | To retrieve this value after a successful return from this method: col=tej.TerGetOutInt("Col"); |
Description: This function converts the text position given in a number of characters from the beginning of the file to the row and column position.
Return Value: The line and column numbers can retrieved as following:
Example:
tej.TerAbsToRowCol(abs)
row=tej.TerGetOutInt("Line");
col=tej.TerGetOutInt("Col");