|
-
Feb 15th, 2001, 11:56 AM
#1
Thread Starter
Addicted Member
Okay I have a form with a multi line text field box. This data is sent to a script that insets it into a database. The data is stored in an Access database in a memo field.
How can I retain the formating as when the data is read out again returns are interpreted as spaces.
Thanks,
Alex
-
Feb 15th, 2001, 05:10 PM
#2
Assuming your multi-line textbox contains carraige-return/linefeeds and you want to display the data as normal HTML while preserving the format you can do a Replace() on your text to substitute vbCrLF's for HTML <BR>'s. Something like:
strToDisplay = Replace(strData, vbCrLf, "<BR>")
This will only work if there are hard returns in the data. Soft Returns (those forced by wrapping) won't be interpreted as vbCrLf's.
Paul
-
Feb 16th, 2001, 05:58 AM
#3
Thread Starter
Addicted Member
Thanks Paul thats perfect!
Alex
ASP, SQL, VB6, Java Script and dubious guitar playing skills.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|