Hi Yuri,
>But you set lcVal = PADR("A",3), not lcVal = PADR("A",2), as it supposed to be from original post.
It's "A" padded with two spaces in Fabio's original post. I change it to lcVal = PADR("A",3) to make it obvious.
>And if it is as in your example lcVal = PADR("A",3), it is a bug in VFP6/7 and not in VFP8, I believe.
It's a bug in VFP8 because result depends on optimization of the query. In VFP7 and earlier result is consistent with VFP docs (SET ANSI command).
--sb--