Thank you. Works fine.
Alex
>You may try to do it in a different way similar to a table of context discussed by Cathy Pountney in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfoxgen9/html/VFP9Reports2.asp. Create three separate report fileds: Name, dots field with expression REPLICATE(".", < whatever >) and Phone #. Sent to Back dots field so it's covered by 2 other fields.
>
>>
>>I need to justify a string in a way similar to a phonebook. Name goes on left side and telephone number goes on the right. Spaces or perhaps "..." go in the middle. The parameters are: textbox width in inches, as indicated by property sheet of reporter, fontname, and fontsize.
>>
>>I've used this code, but it doesn't work.
>>
><snip>