[DUG] HEX to decimal
Steven Knight
Steven.Knight at ecan.govt.nz
Mon Aug 8 08:57:19 NZST 2011
When I was doing something similar I had think I used a PACKED RECORD
As a buffer to access the individual bytes
Delphi adds padding bytes to word align the data and these may be tripping you up.
Steven
-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On Behalf Of Marshland Engineering
Sent: Friday, 5 August 2011 3:22 p.m.
To: delphi at delphi.org.nz
Subject: Re: [DUG] HEX to decimal
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 Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.clearswift.com
**********************************************************************
More information about the Delphi
mailing list