PC Review


Reply
Thread Tools Rate Thread

char string question - easy

 
 
Keith Smith
Guest
Posts: n/a
 
      14th Feb 2005
What am I doing wrong?

string x = (char)13+(char)10;


 
Reply With Quote
 
 
 
 
Christian Wilhelm
Guest
Posts: n/a
 
      14th Feb 2005
Try using

string lineFeed = "\r\n";

instead.

Sincerly,
Christian

"Keith Smith" <(E-Mail Removed)> schrieb im Newsbeitrag
news:kL2Qd.27231$uc.18676@trnddc09...
> What am I doing wrong?
>
> string x = (char)13+(char)10;
>



 
Reply With Quote
 
Wayne
Guest
Posts: n/a
 
      14th Feb 2005
Or, instead of creating your own line feed, just use Environment.NewLine


--
Thanks
Wayne Sepega
Jacksonville, Fl


"When a man sits with a pretty girl for an hour, it seems like a minute. But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

"Christian Wilhelm" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Try using
>
> string lineFeed = "\r\n";
>
> instead.
>
> Sincerly,
> Christian
>
> "Keith Smith" <(E-Mail Removed)> schrieb im Newsbeitrag
> news:kL2Qd.27231$uc.18676@trnddc09...
> > What am I doing wrong?
> >
> > string x = (char)13+(char)10;
> >

>
>



 
Reply With Quote
 
=?Utf-8?B?UmFrZXNoIFJhamFu?=
Guest
Posts: n/a
 
      14th Feb 2005
Hi Keith,

You could use the Keys enumeration.

Also, Environment.NewLine is the same as "\r\n".

HTH,
Rakesh Rajan

"Keith Smith" wrote:

> What am I doing wrong?
>
> string x = (char)13+(char)10;
>
>
>

 
Reply With Quote
 
Keith Smith
Guest
Posts: n/a
 
      14th Feb 2005
Thanks guys.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
string.Replace((char)146, (char)39) does not work? mohaaron Microsoft C# .NET 3 1st Feb 2010 11:05 PM
string / char[] question Zach Microsoft C# .NET 3 2nd Jun 2006 06:58 AM
C# Newby String to Char Conversion question Fred Nelson Microsoft C# .NET 7 18th May 2005 10:00 PM
Question on converting char* into System.String Yan Vinogradov Microsoft C# .NET 4 28th Oct 2004 02:28 PM
Conversion from managed String to char * or unmanaged char array Jonathan Beck Microsoft VC .NET 0 26th Aug 2003 01:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:52 PM.