Er, not really... ;-) * Char.GetNumericValue(char) is more like VB's Val() (and I'd use int.Parse or similar instead)
and * Char.Parse() doesn't much other than convert string to a char Edward -- be careful of ASCII stuff anyway because ASCII is limited to English characters. You should consider using UTF8 or Unicode in this day and age... Cheers, Duncan Smart On Tue, 23 Apr 2002 07:13:32 -0600, Weakliem, Gordon <[EMAIL PROTECTED]> wrote: >Chr -> System.Char.GetNumericValue(char) >Asc -> System.Char.Parse(String) > > > >-----Original Message----- >From: Edward Ferron [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, April 23, 2002 7:01 AM >To: [EMAIL PROTECTED] >Subject: [DOTNET] C# Ascii, Asc, Char, Chr functions? > > >How do I get Asc, Ascii, Char Chr functions in C#? Is there another class >for them? They are available in VB.NET but I can not find the namespace >from which they come from? > >Thanks, > >Ed > >You can read messages from the DOTNET archive, unsubscribe from DOTNET, or >subscribe to other DevelopMentor lists at http://discuss.develop.com. > > >The information in this electronic mail message is sender's business >Confidential and may be legally privileged. It is intended solely for the >addressee(s). Access to this Internet electronic mail message by anyone >else is unauthorized. If you are not the intended recipient, any >disclosure, copying, distribution or any action taken or omitted to be taken >in reliance on it is prohibited and may be unlawful. >The sender believes that this E-mail and any attachments were free of any >virus, worm, Trojan horse, and/or malicious code when sent. This message and >its attachments could have been infected during transmission. By reading >the message and opening any attachments, the recipient accepts full >responsibility for taking protective and remedial action about viruses and >other defects. Galileo International is not liable for any loss or damage >arising in any way from this message or its attachments. > >You can read messages from the DOTNET archive, unsubscribe from DOTNET, or >subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.