How to Append Digits To A String (AREV Specific)
At 01 MAY 2000 04:27:38PM Jim Dierking wrote:
I need to append a variable number of zeros to the left of a string.
I acheived this by using case logic and concatenating onto the string. However, I was wonder if there is some sort of RBasic append command. In this case, I have to have a total of eight digits.
I substract the hard data(wt of a package) from the eight and obtain the number of zeros needed to be added onto the string. Appreciate
your help, Jim.
At 01 MAY 2000 05:12PM rayc@symmetryinfo.com wrote:
Jim,
Have you tried FMT? For example,
val=1
xx =FMT(val,"R(0)#8) ;* this will give you 8 digits. If val is not 8 digits, then it will zero fill to the left.
xx will display 00000001.
Very useful. Try it.
rayc@symmetryinfo.com onmouseover=window.status=imagine … ;return(true)"
Ray Chan ~ Symmetry Info
At 01 MAY 2000 06:03PM Don Bakke wrote:
Jim,
Did you get the source code from me? I haven't heard back yet from you.
dbakke@srpcs.com