# Reset scrollPosition, UIScrollBar, dinamic text

**URL:** <https://forum.kirupa.com/t/reset-scrollposition-uiscrollbar-dinamic-text/133642>\
**Category:** Uncategorized\
**Created:** [January 10, 2005, 7:22pm UTC](https://forum.kirupa.com/t/reset-scrollposition-uiscrollbar-dinamic-text/133642 "2005-01-10T19:22:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![friedlos7](https://avatars.discourse-cdn.com/v4/letter/f/b5ac83/32.png) [@friedlos7](https://forum.kirupa.com/u/friedlos7)\
**Post date:** [January 10, 2005, 7:22pm UTC](https://forum.kirupa.com/t/reset-scrollposition-uiscrollbar-dinamic-text/133642/1 "2005-01-10T19:22:51Z")

</div>

When I load text dinamically through button A in a textfield and move the UIScrollBar’s scroll thumb down, hereafter load again text dinamically through button B, neither the scroll thumb resets to position 0 nor the textfield content (shows its first line).  
I’ve tried

[font=Courier New] myScrollBar.scrollPosition = 0;[/font]

in the on (release) event and in LoadVarsText function in the on event, and either works - or better yet…the scroll thumb goes up from its position for a fraction of a second and returns back down - both the scroll thumb and textfield remain in the same (last) position.

Any reference?
