>Hi Sergey,
>
>Thanks. I just realized that after I posted, because, I guess, vfp is just evaluating it as one string.
>
>But now I realize that I need to get the width based on the txtwidth or fontmetric function, and the current font. But I am trying to figure out the right expression?
>
>str(fontmetric(6)*len(errsrt.csortname))
>
>seems to work right?
>
It should work but I would use TRANSFORM() instead of STR().
--sb--