473,326 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Carriage Return / Line feed

Hi,

I want to send an Email using ASP (I know how to to this)
The body of the Email contains several variabels
How do I concat string values and separate them by carriage returns/ Line
feeds?

Any help will be greatly appreciate.

Regards,

Arnoud
Jul 19 '05 #1
6 31166
<Arnoud Oortwijk> wrote in message
news:40**********************@news.skynet.be...
Hi,

I want to send an Email using ASP (I know how to to this)
The body of the Email contains several variabels
How do I concat string values and separate them by carriage returns/ Line
feeds?


Assuming your ASP code is using VBScript (not JScript), use the vbCrLf
character. For example:

myStr = "This is line 1." & vbCrLf & "This is line 2."

Hope this helps,
Peter Foti
Jul 19 '05 #2
Peter Foti wrote on 01 apr 2004 in
microsoft.public.inetserver.asp.general:
<Arnoud Oortwijk> wrote in message
news:40**********************@news.skynet.be...
Hi,

I want to send an Email using ASP (I know how to to this)
The body of the Email contains several variabels
How do I concat string values and separate them by carriage returns/
Line feeds?


Assuming your ASP code is using VBScript (not JScript), use the vbCrLf
character. For example:

myStr = "This is line 1." & vbCrLf & "This is line 2."


Depending on the requirements of the email component used.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #3
> I want to send an Email using ASP (I know how to to this)
The body of the Email contains several variabels
How do I concat string values and separate them by carriage returns/ Line
feeds?


body = body & "This is line one" & vbCrLf
body = body & "This is line two" & vbCrLf

Is that what you mean?
Jul 19 '05 #4
Excellent thanks all
"Randy Rahbar" <rvrahbar@_JUNKETY_JUNK_hotmail.com> wrote in message
news:e5**************@TK2MSFTNGP12.phx.gbl...
I want to send an Email using ASP (I know how to to this)
The body of the Email contains several variabels
How do I concat string values and separate them by carriage returns/ Line feeds?


body = body & "This is line one" & vbCrLf
body = body & "This is line two" & vbCrLf

Is that what you mean?

Jul 19 '05 #5
if vbCrLf is specified:

vbCrLf = Chr(13)&Chr(10)
Jul 19 '05 #6
It's a built-in constant and doesn't need to be specified.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Maarten" <no****@pandora.be> wrote in message
news:gW*********************@phobos.telenet-ops.be...
if vbCrLf is specified:

vbCrLf = Chr(13)&Chr(10)

Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Canes_Rock | last post by:
The information posted at: ...
1
by: wschaub | last post by:
Is there any way of forcing an ASMX web service not to translate a carriage return – line feed (\r\n) with a (\n\n), in other words the carriage return \r is replaced with a \n if contained as...
3
by: David N. | last post by:
Hi All, I spent too much time on trying to get the CrLf into a string, which contains embedded SQL statements that can be executed by the SQLClient.SqlCommand. Note that these SQL statements...
1
by: Jim Heavey | last post by:
In the Regular Expression, I can use \n for Line Feed, \t for a tab and \r for carriage return. Am I able to use thos same expressions in a "Replace method" of the string object? such as ...
2
by: Matt Mercer | last post by:
Hi all, I am having a frustration problem, and I have read about 25 newsgroup postings that do not have a satisfying answer :) The problem appears to be common where carriage returns are lost...
2
by: sys | last post by:
I have a web method that returns a string. When I return a string that has a carriage return and line feed in it ("\r\n") on the client side I only receive a string including the line feed ("\n")....
11
by: TheRain | last post by:
Hi, I am trying to append a carriage return to my string using the string builder class, but when I do this the string ends up containing "13". I tried this multiple ways like so ...
3
by: Gillian Steele | last post by:
I'm trying to import data into a memo field by running an append query. The data is to be imported as if it was entered with separate lines in the memo field. I have tried inserting chr(13)s...
4
by: whitej77777 | last post by:
I am trying to write a user defined function that will allow me to strip off the last carriage return and line feed from a text field. We have address fields stored in a text field for our ERP...
4
by: coolguyraj | last post by:
Hi. I have form that has a text box. I want insert unformatted text into the database. Even if the user gives an carriage return or New line feed in the database it should be stored as on single...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.