The data returned in <span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial; ">SerialPortNG.</span><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial; ">ReadNextClusterAsString, is it a buch of chars at a time, or just one at a time?</span><div>
<font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="border-collapse: collapse;">If its a bunch of them at a time, you will need to do a conversion one char at at time in a loop.<br></span></font></div>
<div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="border-collapse: collapse;">i.e. for x:=0 to length(sRaw) do</span></font></div>
<div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="border-collapse: collapse;">       begin</span></font></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="border-collapse: collapse;">          ivalue:= </span></font><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(80, 0, 80); font-family: arial, sans-serif; font-size: 13px; ">ORD(sRaw[x]))</span><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial; "> ;</span></div>
<div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="border-collapse: collapse;">       end;</span></font></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="border-collapse: collapse;">something along those lines....I didnt write that in Delphi, I just did it from memory but it should help a bit....I hope.</span></font></div>
<div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="border-collapse: collapse;">Jeremy</span></font></div>
<div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font><div class="gmail_quote">On Fri, Aug 5, 2011 at 8:43 AM, Steven Knight <span dir="ltr">&lt;<a href="mailto:Steven.Knight@ecan.govt.nz">Steven.Knight@ecan.govt.nz</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">





<div bgcolor="white" lang="EN-NZ" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">You might need to use the ORD function byte by byte<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Steven<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt">From:</span></b><span lang="EN-US" style="font-size:10.0pt"> <a href="mailto:delphi-bounces@delphi.org.nz" target="_blank">delphi-bounces@delphi.org.nz</a> [mailto:<a href="mailto:delphi-bounces@delphi.org.nz" target="_blank">delphi-bounces@delphi.org.nz</a>]
<b>On Behalf Of </b>Marshland Engineering<br>
<b>Sent:</b> Thursday, 4 August 2011 7:47 p.m.<br>
<b>To:</b> <a href="mailto:delphi@delphi.org.nz" target="_blank">delphi@delphi.org.nz</a><br>
<b>Subject:</b> Re: [DUG] HEX to decimal<u></u><u></u></span></p>
</div>
</div><div class="im">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Been there done that
</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">edit2.text := IntToStr(StrToInt(&#39;$&#39; + sRaw));<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Result      &#39;[&#39; is not a valid integer.
</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div></div>
<p>**********************************************************************<br>This email and any files transmitted with it are confidential and<br>intended solely for the use of the individual or entity to whom they<br>are addressed. If you have received this email in error please notify<br>
the sender of the message.</p><p>This footnote also confirms that this email message has been swept by<br>MIMEsweeper for the presence of computer viruses.</p><p><a href="http://www.ecan.govt.nz" target="_blank">www.ecan.govt.nz</a><br>
**********************************************************************</p>
</div>

<br>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br></blockquote></div><br></div>