Try 

X=1
Y=LEN(X)
Z=STR(0,4-Y):X
HTH


>>> [EMAIL PROTECTED] 03/02/05 01:30PM >>>
Hi all,

I have a need to search through our program files for any code that
format a number from 1 through 99999 with leading 0's.
I have always used "R%5" but I may miss programs that use other
techniques to arrive at the same result.  Can someone give me examples
that they have seen for changing 1 to 00001?

Thanks much,

Scott
-------
u2-users mailing list
[email protected] 
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to