title: Formatting a string from an integer, and keeping leading zeros (PowerBuilder)
body: <p>So I have some code that takes a string and pads some zeros onto the end in order to make it 7 digits in length.    </p>
  
  <pre><code>uo_sin.uo_em_sin_number.em_sin_number.text = string(long(ilCurrSin), '#######')
  </code></pre>
  
  <p>The problem with this is when a number like "001" gets put in, it returns "1000000" when I need it to return "0010000"</p>
  
  <p>I'm guessing there is a variation of the ###### formatting that doesn't lop of leading zeros but I can't find anything.</p>
  
  <p>If it makes any difference, this is in the PowerBuilder 9.0.2 environment.</p>