Rohit Gupta wrote:
> var
> L : longword;
> A : array [0..7] of byte; absolute L;
>
> Now just store what you want in L and read from A or vice versa.
I didn't know you could do that. I've wanted to do something like this
in the past to extract an integer in a string read from a binary file.
I just used lots of @'s & ^'s. This is much nicer.
Ross.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/