# Extract lines from dynamic Textfield

**URL:** <https://forum.kirupa.com/t/extract-lines-from-dynamic-textfield/254841>\
**Category:** Uncategorized\
**Created:** [March 16, 2008, 5:58am UTC](https://forum.kirupa.com/t/extract-lines-from-dynamic-textfield/254841 "2008-03-16T05:58:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webreake](https://avatars.discourse-cdn.com/v4/letter/w/90db22/32.png) [@webreake](https://forum.kirupa.com/u/webreake)\
**Post date:** [March 16, 2008, 5:58am UTC](https://forum.kirupa.com/t/extract-lines-from-dynamic-textfield/254841/1 "2008-03-16T05:58:46Z")

</div>

hi everyone

i have a texfield wich has wordwrap enabled and i append a text every X seconds,  
after a while my textfield gets very large and that causes my movie to slowdown so when this happens i want to clear the text and just leave the last 10 lines

i know how to get the number of lines (maxscroll) but i dont know how to extract the last 10 lines.

i have searched for this in the forum but couldnt find an answer.

any clue ? :beam:
