# Get a textfield line number

**URL:** <https://forum.kirupa.com/t/get-a-textfield-line-number/289405>\
**Category:** Uncategorized\
**Created:** [May 29, 2009, 8:35pm UTC](https://forum.kirupa.com/t/get-a-textfield-line-number/289405 "2009-05-29T20:35:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cosizzle](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/cosizzle/32/2718_2.png) [@Cosizzle](https://forum.kirupa.com/u/Cosizzle)\
**Post date:** [May 29, 2009, 8:35pm UTC](https://forum.kirupa.com/t/get-a-textfield-line-number/289405/1 "2009-05-29T20:35:54Z")

</div>

Hey i have a text field with text within it. Im wanting to get the line number of that text element once its clicked. Using an event listener I can get a specific value

```php

function clickHandler(event:MouseEvent):void {
	trace(myTF.getLineText(0));

}

```

Of course I would have to use either an if statement or an if statement within a for loop, but what would I check it against?
