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

How do you keep the formating in a Memo Field?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How do you maintain the formatting submitted in a form MEMO field.

I am not concerned with COLOR or BOLD, but rather the new line. I want to avoid entering <BR><BR> for every new line I need.

Any help at all would be great... thanks.

(Much like the lines I have entered in here, spaced out with new lines between-- If it comes across that way)
 
I believe the correct term is Rich-TEXT. How do I keep that formating in the OUTPUT?
 
When I use the:

<PRE>
#INFO#
</PRE>

It allows my Table to stretch out to fit it all on the same line.

Example:
- jhjkhjkdfsh kjhfjkhdjkhdksjhkjfkgj ljdgkld gjd kljdfkl gfdjlk gfjdklg fdkljg lkdfjklg jdflkjgklfdj lkgjfdkl jklgfdkl jkljdflk jgfjklg
- jhfjh fkhkjghfd kjhdfjkhg kjfhdkjgf djhg kjdfhg jkdfhkj ghjgkh jkfdhgjk hfdjkg hkjdfhjghfdkj hgfdk

They both come out as long lines verses wraping.
I have wraping enabled and the table at a fixed width.

Please advise.
 
I got it...

#ParagraphFormat(info)#

I guess I just needed to look for a while... The Cool thing is I found out alot about CF and formating in my search.
 
Thought I had it but it still doesn't work...

Anyone got an idea. I am about to go off the deep end. Fraustrating, because I know it can be done... you use it on your site.

- David
 
OK... I know I am just talking to myself at this point but I really got it now...

PRE is no good because it will not wrap around.

Format is no good because it replaces returns with spaces.

but...

#replace(info,&quot;#chr(10)#&quot;,&quot;<BR>&quot;,&quot;all&quot;)#

This is the best command yet! It replaces the return with a <BR>! Works great!
 
Hey, David!

I'm glad you solved your problem, but just FYI, PRE does work if you include the attribute WRAP=&quot;HARD&quot; in your textarea. It preserves the formating just as the user entered it. I've done this in a few places on my intranet. Calista :-X
Jedi Knight,
Champion of the Force
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top