# Substr only returns up to 20

**URL:** <https://forum.kirupa.com/t/substr-only-returns-up-to-20/244041>\
**Category:** Uncategorized\
**Created:** [November 13, 2007, 10:12pm UTC](https://forum.kirupa.com/t/substr-only-returns-up-to-20/244041 "2007-11-13T22:12:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rrex](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rrex](https://forum.kirupa.com/u/rrex)\
**Post date:** [November 13, 2007, 10:12pm UTC](https://forum.kirupa.com/t/substr-only-returns-up-to-20/244041/1 "2007-11-13T22:12:17Z")

</div>

I have a thumbnail gallery and I’m trying to call thumbnails with ending numbers 0-300, however this strng will only call thumbnails up to twenty. Any idea what is wrong or how I could achieve this? Much appreciated!

this.\_name=“s”+(108);  
a=int(this.\_name.substr(1,2)+(\_root.album-1)\*10);  
pic.gotoAndStop(a);  
stop();
