piclist 2001\01\02\045412a >
Thread: pascal string handling
www.piclist.com/techref/index.htm?key=pascal+string+handling
flavicon
face BY : Graham email (remove spam text)



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 ??

how ?

Graham





-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


<3a51a53a3a5dcdd9@villosa.wanadoo.fr> (added by villosa.wanadoo.fr)

See also: www.piclist.com/techref/index.htm?key=pascal+string+handling
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) pascal string handling

month overview.

new search...