I am using the serial port of my computer to read data from device. This works fine. However, I can not manage to convert the characters in their ASCII code.
In article <7kkujs$2p5ea$1@reader3.wxs.nl>, "Jan Jaap Krikke" wrote: > Hello, > > I am using the serial port of my computer to read data from device. This > works fine. However, I can not manage to convert the characters in their > ASCII code. > > Does anybode know how to do this? > > Thanks in advance. > > Regards, > > Jan Jaap > Hi,
use the "String to Byte Array"-function (can be found in Numeric->Conversion) to get your string converted into an array of bytes, which contains the corresponding ASCII values. Hope that helps.
Bye,
Alexander
Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.