|
-
Jun 22nd, 2000, 10:24 AM
#1
Thread Starter
Addicted Member
Hi,
I'm planning on creating a web that will allow different
users to submit their codes. These codes will be stored in a Memo Field. The problem that I'm having is that when ever I display the contents of the Memo Field it
Jumbles up every thing. How can I display the contents of
the Memo field in the same way (format) in which it was enter by the users. A very good example is this Bulletin
Board.
Any Suggestions??
-
Jun 22nd, 2000, 10:50 AM
#2
Fanatic Member
Two options
(1)
Simple way is this
Memotext = replace(Memotext, vbcrlf, "<BR>")
html isn't recognising the carrage returns.
(2)
Better way, like this site I assume is have a tag like [ code ] and a "VBtext-> html coloured_code" activex dll (I have one somewhere) then have the asp file use method 1 for normal text and the createobject on the dll for code text.
I've been meaning to do this too but I don't have an NT server with static IP for a server. I have something similar on the intranet though.
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
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
|