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),"
")

devx-admin

Share the Post: