Rules | Recent posts | topic RSS | Search | Register  | Log in

DEC to ascii conversion

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Author Message
D_A_V_E



Joined: 13 Nov 2007
Posts: 52
Helped: 3


Post13 Aug 2008 16:15   DEC to ascii conversion

Hi friends,

I would like to know if there is a direct way to convert dec values into ascii characters in vb.net???

I have made a nice program that saves data that i receive from the serial port. I want to see it in ascii values expl: 111--> o ect.

Could you please help me with this problem if possible?
Back to top
mezo



Joined: 16 Jul 2007
Posts: 60
Helped: 2
Location: Egypt


Post17 Aug 2008 14:41   Re: DEC to ascii conversion

tell me my friend what is the difference between the dec & ascii ?

they are the same . the ascii code is a decimel numbers . is that what you mean ?
Back to top
jhbbunch



Joined: 21 Feb 2006
Posts: 220
Helped: 15


Post18 Aug 2008 17:59   DEC to ascii conversion

Just use the .NET ToString method. All datatypes have it.

Console.Writeline("The value of x is:" + x.ToString)

Or something like that.
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap