edit2.text := IntToStr(StrToInt('$' + sRaw));
On Thu, Aug 4, 2011 at 5:50 PM, Marshland Engineering
marshl...@marshland.co.nz wrote:
**
I cannot get the decimal equivalent of the number sent from my micro in
Delphi !!!
I am running and ATmega (micro) and it sends out a hex number
Been there done that
edit2.text := IntToStr(StrToInt('$' + sRaw));
Result '[' is not a valid integer.
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
You might need to use the ORD function byte by byte
Steven
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On
Behalf Of Marshland Engineering
Sent: Thursday, 4 August 2011 7:47 p.m.
To: delphi@delphi.org.nz
Subject: Re: [DUG] HEX to decimal
Been there done that
The data returned in SerialPortNG.ReadNextClusterAsString, is it a buch of
chars at a time, or just one at a time?
If its a bunch of them at a time, you will need to do a conversion one char
at at time in a loop.
i.e. for x:=0 to length(sRaw) do
begin
ivalue:= ORD(sRaw[x])) ;
just noticed I missed a -1 in the for loop. Should be
for x:=0 to length(sRaw) -1 do
Jeremy
On Fri, Aug 5, 2011 at 9:32 AM, Jeremy Coulter jscoul...@gmail.com wrote:
The data returned in SerialPortNG.ReadNextClusterAsString, is it a buch of
chars at a time, or just one at a time?
If its a
From memory it fails if you try. I think the SMTP component frees them...
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On
Behalf Of Ross Levis
Sent: Thursday, 4 August 2011 4:02 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Email/SMTP code
I still have something wrong
I sending
serial_send('B');
serial_send('C');
and a terminal program reads BC correctly
My Delphi code is as below but something is wrong with the second character.
if SerialPortNG.NextClusterSize = 0 then begin
Adding more characters
serial_send('B');
serial_send('C');
serial_send('D');
serial_send('E');
I get
B(Tú
66 40 84 250
B(Tú
66 40 84 250
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin:
What version of Delphi are you using? Could the string be returned as a
Unicode string? or is it an AnsiString?
Secondly, shouldn't the for loop be: for i := 0 to Length(sRaw) do
Regards,
Colin
On 5 August 2011 10:34, Marshland Engineering marshl...@marshland.co.nzwrote:
I still have
What version of Delphi are you using? Could the string be returned as a
Unicode string? or is it an AnsiString?I'm using Ver 6
Apparently ORD works with 1 for the first character and not 0 just to be
confusing !!!
PS Using 0 returns a blank.
___
NZ
Folks,
Hi. You guys may want to know the solution to this issue. If you call
TWebBrowser.ExecWB, after it returns, you will find that the EmptyParam
global variable is no longer the same value. It gets set to Unassigned.
There is a bug logged on Quality Central:
11 matches
Mail list logo