Re: Put ascii to char

Mattias Sjögren <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <[email protected]>
>Sure, you need to be explicit about the assignment and cast that's all. Try
>this instead:
>
><codeSnippet language="C#">
>char escape = (char)27;
></codeSnippet>

Two more options:

char escape = '\x1B';
char escape = '\u001B';


Mattias

===
Mattias Sjögren
[email protected]

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.