Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: vbcrlf


Message #1 by <wrox@d...> on Mon, 24 Sep 2001 21:29:39 +0100
Hi,

 

Does C# have the equivalent for the vbcrlf (carriage return line feed)?

 

David

Message #2 by Scott Watermasysk <swatermasysk@C...> on Mon, 24 Sep 2001 16:41:52 -0400
yes "\n".



-Scott



-----Original Message-----

From: wrox@d... [mailto:wrox@d...]

Sent: Monday, September 24, 2001 4:30 PM

To: ASP+

Subject: [aspx] vbcrlf





Hi,

 

Does C# have the equivalent for the vbcrlf (carriage return line feed)?

 

David

Message #3 by Tim Heuer <TimH@i...> on Mon, 24 Sep 2001 13:38:54 -0700
\n



Ex:



VB:

mystring = mystring & vbCrLf

Or

mystring += vbCrLf



C#:

mystring = mystring + "\n";

Or

mystring += "\n";



-----Original Message-----

From: wrox@d... [mailto:wrox@d...] 

Sent: Monday, September 24, 2001 1:30 PM

To: ASP+

Subject: [aspx] vbcrlf





Hi,

 

Does C# have the equivalent for the vbcrlf (carriage return line feed)?

 

David

Message #4 by "Albert Davis" <albertdavis@h...> on Mon, 24 Sep 2001 16:39:35 -0400
Console.WriteLine("\n");





>From: <wrox@d...>

>Reply-To: "ASP+" <aspx@p...>

>To: "ASP+" <aspx@p...>

>Subject: [aspx] vbcrlf

>Date: Mon, 24 Sep 2001 21:29:39 +0100

>

>Hi,

>

>Does C# have the equivalent for the vbcrlf (carriage return line feed)?

>

>David

Message #5 by "GfWeis" <gfw@y...> on Mon, 24 Sep 2001 15:38:38 -0500
try "\n\r" 



Gfw



-----Original Message-----

From: David Higgins [mailto:david@h...]On Behalf Of

wrox@d...

Sent: Monday, September 24, 2001 3:30 PM

To: ASP+

Subject: [aspx] vbcrlf





Hi,

 

Does C# have the equivalent for the vbcrlf (carriage return line feed)?

 

David

Message #6 by "dave 123aspx.com" <support@1...> on Mon, 24 Sep 2001 15:53:34 -0500
\n

or, to be CLR compliant, System.Environment.NewLine;



Cheers!

Dave

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

http://www.123aspx.com

The Largest ASP.NET Web Directory!

Find the latest ASP.NET resources --

Subscribe to our newsletter!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

----- Original Message ----- 

From: <wrox@d...>

To: "ASP+" <aspx@p...>

Sent: Monday, September 24, 2001 3:29 PM

Subject: [aspx] vbcrlf





> Hi,

>  

> Does C# have the equivalent for the vbcrlf (carriage return line feed)?

>  

> David

Message #7 by Scott Mitchell <mitchell@4...> on Mon, 24 Sep 2001 14:05:09 -0700
\n\r



\n does the carraige return, \r does the line feed...



    Scott Mitchell

    mitchell@4...





***********************************************************



Looking to learn ASP.NET?  Look no further than:



   Sams Teach Yourself ASP.NET in 21 Days

   http://www.amazon.com/exec/obidos/ASIN/0672321688/4guysfromrollaco



*********************************************************** 



| -----Original Message-----

| From: David Higgins [mailto:david@h...]On Behalf Of

| wrox@d...

| Sent: Monday, September 24, 2001 1:30 PM

| To: ASP+

| Subject: [aspx] vbcrlf

| 

| 

| Hi,

|  

| Does C# have the equivalent for the vbcrlf (carriage return 

| line feed)?

|  

| David

Message #8 by "Paul Birch" <paulbirch@b...> on Mon, 24 Sep 2001 22:22:05 +0100
yes, it uses an escape character like c or C++;

To use try:

	"Hello \n World"

you will get:

	Hello

	 World			(indented because I put a space there)



\n is equivalent to a vbCrLf, but it's included in the string.



Paul





-----Original Message-----

From: David Higgins [mailto:david@h...]On Behalf Of

wrox@d...

Sent: 24 September 2001 21:30

To: ASP+

Subject: [aspx] vbcrlf





Hi,

 

Does C# have the equivalent for the vbcrlf (carriage return line feed)?

 

David
Message #9 by Scott Mitchell <mitchell@4...> on Mon, 24 Sep 2001 14:29:08 -0700
Actually, \n is JUST a carraige return.  \n != vbCrLf



\n\r is a carraige return / line feed -- \n\r == vbCrLf



\n == vbCr



\r == vbLf



Browsers, though, treat \n and \n\r the same.





| -----Original Message-----

| From: dave 123aspx.com [mailto:support@1...]

| Sent: Monday, September 24, 2001 1:54 PM

| To: ASP+

| Subject: [aspx] Re: vbcrlf

|

|

| \n

| or, to be CLR compliant, System.Environment.NewLine;

|

| Cheers!

| Dave

| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

| http://www.123aspx.com

| The Largest ASP.NET Web Directory!

| Find the latest ASP.NET resources --

| Subscribe to our newsletter!

| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

| ----- Original Message -----

| From: <wrox@d...>

| To: "ASP+" <aspx@p...>

| Sent: Monday, September 24, 2001 3:29 PM

| Subject: [aspx] vbcrlf

|

|

| > Hi,

| >

| > Does C# have the equivalent for the vbcrlf (carriage return

| line feed)?

| >

| > David

  Return to Index