pascal string handling
Graham email (remove spam text)
<email@example.com> (added by villosa.wanadoo.fr)
I have sent a controller to somebody that outputs response packets in 12
bytes format, the first 10 are id info consisting of a name to/from and a
designator number in ASCII character codes, and the last two bytes are a
simple binary variable in 16 bit format, lsb then msb..
he is trying to manipulate this string in delphi/pascal of which I have
close to zero knowledge and he has not done this before.
He can see the string in total, simply read as a string and displayed... he
can then see ascii character representations of the last two characters (the
data) but seems unable to find the correct pascal commands to strip these
last two from the twelve byte string and reassemble them as a 16 bit integer...
in BASIC this is trivial, I guess it must be the same in pascal ??
-Need *high IP3* AND good N/F ?? try this- http://www.rfham.com
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
See also: www.piclist.com/techref/index.htm?key=pascal+string+handling
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the