>>lcNewString = left(space(9)+ alltrim(str(lnCurValue)), 9)
>
>YES, thats what i was looking for, but i guess instead of left function it should be right, pls correct me if I am wrong.
>
>Thanks a lot..
Vinod,
The PADL() functio is exactly for this situation;
lcNewString = PADL(str(lnCurVal),9)