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!

removing return

Status
Not open for further replies.

huntert

Technical User
Jan 16, 2003
23
US
I have alittle problem I cant figure out. I am trying to remove a blank line in front and/or after of a string or memo field. I can easily identify if there is a blank line with looking at CHR(13) but I can seem to remove this from the string. Any help would be appreciated. thanks in advance. hunter
 
REPLACE YourFldName WITH STRTRAN(YourFldName,CHR(13),'')

Bear in mind though that you probably also need to get rid of CHR(10) so the following might be more what you need.

REPLACE YourFldName WITH STRTRAN(YourFldName,CHR(13)+CHR(10),'')

Regards,
Jim
 
Thanks. Forgeting the CHR(10) was the issue for me. I add STRTRAN(YourFldName,CHR(13)+CHR(10),'',1,1) the '1,1' to take just the first occurance away. hunter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top