hi, i want to receive a ascii value from rs232 port and then it should be displayed in terms of decimal.. i am using VB for programing... the ascii value comes from a micro controller.. can anyone help me...

Presumeably you are reading it into an integer variable, which, when you print it will be displayed, by default, in decimal

asc() function converts an ascii (well, ansi) character to its decimal equivalent.

Have a look at This link with some sample code to convert hex, decimal, ascii etc.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.