stupidly desperate..halfword??
If I knew that that did, I could tell you the equivalent. You might be
looking for the MakeWord function, in the Windows unit.
If you have two bytes, then you already have *two* half-words. In
Delphi, a Word is 16 bytes wide.
type
TMessageHeaderBlock = packed record
ProductCode,
Date: Word;
Time: LongWord;
ByteCount: LongWord;
RadarSiteID,
ProductDestinationCode,
DataBlockCount: Word;
end;
Read the header block into a variable of type TMessageHeaderBlock, and
you should have all your data. The only problem would be if the header
block were in big-endian byte order; the record above is in
little-endian order. It's a simple task to swap the byte positions, though.
--
Rob
|