2009/10/23 Graeme Geldenhuys <graemeg.li...@gmail.com>: > Hi, > > I'm reading in a WORD (2 bytes) from a binary file. I can display the
As I pressed the Send button, I thought about trying the following. And it worked! But is this the best way of doing what I want? type TWord = record b1: Char; b2: Char; end; var w: TWord; s: string; begin w := TWord(hdr^.ID); s := w.b1 + w.b2; writeln(s); end; -- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal