|
Now that it's been pointed out to me that the entire FOR expression is
evaluated at the 'endfor' (I thought it was evaluated once and just
tested at 'endfor'), I see why it didn't work at first. I still like
Terry's solution 'cause it's fewer instructions than mine and 123
correctly becomes 00123.
coldta = %subst( '000000000000000' // "lots" of zeros
: 1
: cwdth( #col ) - %len( coldta )
) + coldta;
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.