Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Nonbreaking space 1

Status
Not open for further replies.

Madawc

Programmer
Sep 5, 2002
7,628
GB
I was amending a letter where a phone number was separated with spaces and was being split over two lines, which the business did not want. I tried using Chr(255), which should be a non-breaking space in Extended ASCII. Unfortunately it came out as a strange and visible character, a y accented with two dots.

I also tried pasting a non-breaking space from Word: this was simply ignored.

I solved my problem by doing a line-skip instead, Chr(13). But this would cause problems if the text ever changed, and the same thing could come up in other letters where the text included a customer name and so was inconsistent in length.

Does anyone know of an answer?

PS. If there is already a thread, sorry but SEARCH is not currently working for me. (Reported.) Using Google I found a thread about hyphens, which however found no answer.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
How about breaking up the body of the letter and adding the phone number in a text box formatted to keep object together? I didn't test this, but it seems like it might work.

-LB
 
Good idea. I'll try it another time. Thanks.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top