473,399 Members | 2,278 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,399 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 31189
<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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.