Linebreak in records

Results 1 to 2 of 2

Thread: Linebreak in records

  1. #1
    Fubar Guest

    Default Linebreak in records

    Is it possible to transfer the linebreaks a user submits to the db via a &#060;textarea&#062;, so that when I pull the data from the db it displays the intended linebreaks ?<BR><BR>Thank you,<BR>Fubar

  2. #2
    Join Date
    Dec 1969

    Default Old Adages

    &#060;%<BR>Dim DataString<BR>Dim DataLen<BR>Dim nChar<BR>Dim sChar<BR>dim cnt <BR><BR>&#039Open Recordset RS etc...<BR><BR>DataString = RS!YourField<BR>DataLen = len(DataString)<BR>For cnt = 1 to DataLen -1 <BR> sChar = mid(DataString,cnt,1)<BR> nChar = asc(sChar)<BR> if nChar = 13 &#039Ascii val of Carriage return or LineFeed...<BR> response.write "<BR>" &#039 OR whatever break you wanna make...<BR> else<BR> response.write sChar<BR> end if<BR>next<BR>%&#062;<BR><BR>You can also do InStr() and stuff like that...<BR>You can also use the scripting object to manipulate strings, but this is an area of study that would take a lot of time to explain.<BR><BR>Happy Hunting

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts