I am using crystal 8.5.
I have an address field that displays data like so:
10 New Street
St Pauls
Bristol
Each line has a chr(13) after it. I want the field to be displayed on one line only with a comma separating the fields but no comma after the final line like so:
10 New Street, St Pauls, Bristol
I know the replace function will replace all occurrences of chr(13) with a comma but it places a comma after the last line if there is a chr(13) there like so:
Replace ({tblA.Address}, chr(13), ‘,’)
10 New Street,
St Pauls,
Bristol,
Any ideas how I can remove the chr(13) and make the address field appear on one line only with no comma after the last line?
Thanks in advance.
I have an address field that displays data like so:
10 New Street
St Pauls
Bristol
Each line has a chr(13) after it. I want the field to be displayed on one line only with a comma separating the fields but no comma after the final line like so:
10 New Street, St Pauls, Bristol
I know the replace function will replace all occurrences of chr(13) with a comma but it places a comma after the last line if there is a chr(13) there like so:
Replace ({tblA.Address}, chr(13), ‘,’)
10 New Street,
St Pauls,
Bristol,
Any ideas how I can remove the chr(13) and make the address field appear on one line only with no comma after the last line?
Thanks in advance.