HighDots Forums  

ASP and carriage returns

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss ASP and carriage returns in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Y8z82
 
Posts: n/a

Default ASP and carriage returns - 07-15-2004 , 07:35 AM






Stupid question but ...

How would I go about adding a carriage return to the end of each of these
string output lines. I tried using a <br> at the end of each one but it just
came up with a syntax error. Any help would be much appreciated.

strBody = strBody & ( "Site: " & strFromPath ) &_
("Mechanical: " & StrFromPath2 ) &_
("Electrical: " & StrFromPath3 ) &_
("Department: " & StrFromPath4 ) &_
("Date Required: " & StrFromPath5 ) &_
("Work Requested: " & StrFromPath6 ) &_
("Requested by: " & StrFromPath7) &_
("Date Requested: " & StrFromPath8 ) &_
(vbCrLf ) & _
( "FORM submitted at " & Now() & vbCrLf & vbCrLf )


Reply With Quote
  #2  
Old   
Joe Makowiec
 
Posts: n/a

Default Re: ASP and carriage returns - 07-15-2004 , 08:01 AM






On 15 Jul 2004 in macromedia.dreamweaver, Y8z82 wrote:

Quote:
Stupid question but ...

How would I go about adding a carriage return to the end of each of
these
string output lines. I tried using a <br> at the end of each one but
it just came up with a syntax error. Any help would be much
appreciated.

strBody = strBody & ( "Site: " & strFromPath ) &_
strBody = strBody & ( "Site: " & strFromPath ) & vbCrLf &_

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php


Reply With Quote
  #3  
Old   
D. Shane Fowlkes
 
Posts: n/a

Default Re: ASP and carriage returns - 07-15-2004 , 09:25 AM



Are you trying to put a break in your HTML or your code. As it is now, you
break in your code but not in your HTML.

Try adding: & "<br />" & vbcrlf & _






"Y8z82" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Stupid question but ...

How would I go about adding a carriage return to the end of each of these
string output lines. I tried using a <br> at the end of each one but it
just
came up with a syntax error. Any help would be much appreciated.

strBody = strBody & ( "Site: " & strFromPath ) &_
("Mechanical: " & StrFromPath2 ) &_
("Electrical: " & StrFromPath3 ) &_
("Department: " & StrFromPath4 ) &_
("Date Required: " & StrFromPath5 ) &_
("Work Requested: " & StrFromPath6 ) &_
("Requested by: " & StrFromPath7) &_
("Date Requested: " & StrFromPath8 ) &_
(vbCrLf ) & _
( "FORM submitted at " & Now() & vbCrLf &
vbCrLf )




Reply With Quote
  #4  
Old   
Y8z82
 
Posts: n/a

Default Re: ASP and carriage returns - 07-16-2004 , 01:33 AM



Thankyou for your help - worked a treat !

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.