# Get the number of a line in a textField

**URL:** <https://forum.kirupa.com/t/get-the-number-of-a-line-in-a-textfield/244854>\
**Category:** Uncategorized\
**Created:** [November 22, 2007, 3:19pm UTC](https://forum.kirupa.com/t/get-the-number-of-a-line-in-a-textfield/244854 "2007-11-22T15:19:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerryj](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jerryj](https://forum.kirupa.com/u/jerryj)\
**Post date:** [November 22, 2007, 3:19pm UTC](https://forum.kirupa.com/t/get-the-number-of-a-line-in-a-textfield/244854/1 "2007-11-22T15:19:34Z")

</div>

Hi,

is there a way to find the number or of a line in a textField that contains a certain string?

I can find the string using

```auto
string.search();

```

But then I would like to find where the line is in the textfield and scroll it dynamically.

I found

```auto
numLines

```

but that is only the number of lines in a textField.

thanks,

Jerryj.
