chuawenching Posted July 27, 2003 Posted July 27, 2003 Hmm.. i search in google and there are some types of way to convert to Asc! I just want confirm, whether am on the right track? Asc('c') 'vb6 int intValueforC = (int)'c'; // C# version, i think! I want to get accurate information of it! Any comments! Regards, Chua Wen Ching :' Quote
*Experts* mutant Posted July 27, 2003 *Experts* Posted July 27, 2003 What you are doing there is casting, if you want real conversion use this: byte c = Convert.ToByte('c'); Quote
chuawenching Posted July 27, 2003 Author Posted July 27, 2003 Hmm.. you mean in vb6 Asc('c') returns a byte? Regards, Chua Wen Ching :p Quote
*Experts* mutant Posted July 27, 2003 *Experts* Posted July 27, 2003 You can use byte or an integer, it will convert anyway. int c = Convert.ToInt32('c'); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.