EditField.LineNumAtCharPos Function

Returns (as an Integer) the line number in which the CharPosition character appears. Characters are numbered consecutively with the first character numbered 1.

Syntax
result = EditField.LineNumAtCharPos( CharPosition )

Parameters
CharPosition | Integer

Return Value
Result | Integer

# Notes

The first line is numbered zero. Used with ScrollPosition, this lets you scroll the EditField to a particular place in the text.