>>Just checked FPD 2.5, still can't replicate it, and I used the same values that I did in 8.0.
>
>I can't replicate behaviour described in vfp6 either. I did notice something a little odd. Try: padl("12345678",6) and it returns "123456".
>
Einar,
Yes, I noticed that too in both VFP 8.0 and FPD 2.5. To me, this is the expected behavior. You're telling the function to return a 6 character length string and this is what it does.
The workaround is quite simple, if you want a string at least six characters long, but don't wish to truncate it at six.
m.result = PADL(m.result, MAX(LEN(m.result), 6))
George
Ubi caritas et amor, deus ibi est