<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19088">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>I cannot get the decimal equivalent of the number
sent from my micro in Delphi !!!</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I am running and ATmega (micro) and it sends out a
hex number corresponding to an A to D conversion. It is 8 bit. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I'm using SerialNG to read the data with
</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>procedure TfDyno.SerialPortNGRxClusterEvent(Sender:
TObject);<BR>Var<BR>
sRaw:String;<BR>begin<BR> if SerialPortNG.NextClusterSize
>= 0 then begin<BR>
sRaw:=SerialPortNG.ReadNextClusterAsString;<BR>
edit2.text:=sRaw;<BR> end;<BR>end;</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>In the text box I get the ASCII character displayed
eg [ { 9 * { } % etc.
</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>How do I get the
Decimal equivalent to display. Should be in the range
0-65534.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>I've spent many hours trying so far
!!!</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Cheers Wallace</FONT> </DIV></BODY></HTML>