RE: Character representation
From: Madhu[C#-MVP] (MadhuCMVP_at_discussions.microsoft.com)
Date: 10/08/04
- Next message: Alex K: "Re: Using Binding manager to retrieve several clicked rows"
- Previous message: Richard Back: "Wordwrap when printing"
- In reply to: Gas: "Character representation"
- Next in thread: James Curran: "Re: Character representation"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 8 Oct 2004 09:01:03 -0700
Hi,
The representation for some of the special characters in c# are as follows,
\t for Tab
\r for Carriage Return
\n for new line
Also, for converting character to ASCII and vise versa...
try using Convert.ToInt32(char) and Convert.ToChar(int) respectively...
Hope this helps...
Regards,
Madhu
MVP-C# | MCSD.NET
"Gas" wrote:
> Hi,
>
> I am wondering how can I representation some of the specical characters in
> C#?
> (for example, we use vbKeyTab for Tab and vbCrLf for line feed in VB)
>
> Also is there any character to ASCII code and ASCII code to character
> built-in function in C#?
>
> thanks
>
> Gas
>
>
>
- Next message: Alex K: "Re: Using Binding manager to retrieve several clicked rows"
- Previous message: Richard Back: "Wordwrap when printing"
- In reply to: Gas: "Character representation"
- Next in thread: James Curran: "Re: Character representation"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|