James,
>I didn't know you could specify the decimal length with a padl function?
You can't, but since his calls were all doing no decimal places padl() will work. If you need decimal places you can use a str() inside the padl():
? padl( alltrim( str( lnTheNumber, 10, 5 ) ), 10, '0' )