Posted by Grant Foraker on September 29, 2005 at 08:23:27:
In Reply to: ADJUSTR and ADJUSTL posted by Greg on September 24, 2005 at 10:29:21:
Have you tried adding spaces to the end of BEG1$ and END1$ to force the "Current Length" to the "Defined Length".
BEG1$ = STRIP(BEG$) + ' '
END1$ = STRIP(END$) + ' '
BEG$ = ADJUSTR(BEG1$)
END$ = ADJUSTR(END1$)
-OR-
BEG$ = STRIP(BEG$) + STRING(' ',9)
BEG$ = ADJUSTR(BEG$)
END$ = STRIP(END$) + STRING(' ',9)
END$ = ADJUSTR(END$)