# String functions

**URL:** <https://forum.kirupa.com/t/string-functions/177201>\
**Category:** flash\
**Created:** [January 31, 2006, 12:28am UTC](https://forum.kirupa.com/t/string-functions/177201 "2006-01-31T00:28:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ice987](https://avatars.discourse-cdn.com/v4/letter/i/779978/32.png) [@ice987](https://forum.kirupa.com/u/ice987)\
**Post date:** [January 31, 2006, 12:28am UTC](https://forum.kirupa.com/t/string-functions/177201/1 "2006-01-31T00:28:44Z")

</div>

I need to create an ascending array of numbers each formatted with 4 digits

0000  
0001  
0002  
0003

up to say 0040

what is the most elegant/efficient way of achieving this ? Are there any flash formatting functions that I could use?
