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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

insert line break into string with formula. 1

Status
Not open for further replies.

crystalhelp

Programmer
May 13, 2002
56
0
0
CA
I am using a formula to create a string. The string is long and wraps, but I would prefer to control this with line breaks. I have looked through the functions in the formula editor, but haven't found anything. Is this something I can do? Does anybody know the syntax to do this?
 
Sure, just use a chr(13) for a carriage return, which should handle it.

"Hello there,"+chr(13)+"Congratulations on purchasing your new fish entrails shark chumming wetsuit!"

Will return:

Hello there,

Congratulations on purchasing your new fish entrails shark chumming wetsuit!

If you're exporting, you might use:

chr(13)+chr(10)

Carriage Return and Line Feed, though it may not matter.

-k kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top