I've decided to do this, we will see how much of an uproar it makes :-)

CopyMemory(@wrdValue, @abytData[3], 2);

Tony Sinclair
Holliday Group Limited
Christchurch
New Zealand


-----Original Message-----
From: Tony Sinclair [mailto:[EMAIL PROTECTED]]
Sent: Friday, 4 August 2000 12:13
To: Multiple recipients of list delphi
Subject: [DUG]: Coverting Binary Streams


Hi all,

for example, if I have a TByteArray and I want to get bytes 4 and 5 and
convert them to a word, how do I go about doing that?

In Jade the code looks like:

myArray[4 : 5].Integer;

Do I need to defined record types of the various sizes I need, chuck the
bytes into there and convert?

Tony Sinclair
Holliday Group Limited
Christchurch
New Zealand

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to