devxlogo

Format a String from Database that has line Feeds and Carriage Returns

Format a String from Database that has line Feeds and Carriage Returns

If you’re displaying a long string, which contains line feeds and carriage returns, then replace those ASCII characters with something that will format the string before displaying the same to the user. Example:

 sStringToDisplay = Replace (sStringFromDatabase, 
chr(13) & chr(10),"
")
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist