Re: Character representation

From: Shiva (shiva_sm_at_online.excite.com)
Date: 10/08/04


Date: Fri, 8 Oct 2004 21:21:57 +0530

To convert between chars and ASCII code, use typecasting. (char)65 gives you
'A'; (int)'A' gives 65.

For keys, see if System.Windows.Forms.Keys enumeration could help you.

"Gas" <gasxxx@hotmail.com> wrote in message
news:ukv7nvUrEHA.2732@TK2MSFTNGP09.phx.gbl...
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



Relevant Pages

  • Re: Text files
    ... The most common form of text files use ASCII code, and there is no character ... Microsoft's DOS started its life as a CP/M look alike for the 8086/8 ... and added automatically a CTRL-Z at the end of text files ...
    (comp.lang.c)
  • Need help to remove tbas, carriage retrun, and other!!!
    ... ASCII code of the character ... that I link to) to specify the string that you want to ... optionally the ascii chr number of the delimiter ... 'At the start point of the string (1 character after the ...
    (microsoft.public.access.queries)
  • Re: Does the cell have a number?
    ... CODEreturns the ascii code for each character - I'm looking for numbers ... I would like to be able to determine if any part of the cell>>>contents is a number, even if the string starts with, or contains ...
    (microsoft.public.excel.worksheet.functions)
  • Re: My symbols turn to question marks
    ... the space between & and #) where the number is the ASCII code for the ... It is possible that your server is delivering the page with UTF-8 character ... > marks or other oddball symbols. ... > question mark. ...
    (microsoft.public.frontpage.client)
  • Re: Find&Replace
    ... If the ASCII code is 7, then you will need ^007 or ^0007, I believe. ... > The problem is I don't know what special character it is. ... Choose Replace from the Edit ... >> the dialog box to expand it. ...
    (microsoft.public.word.docmanagement)

Loading