Graeme Geldenhuys schreef:
On 23/10/2009, Vincent Snijders <[email protected]> wrote:
 You can consider declaring the ID in the header record type as array[1..2]
of char.

As Marco suggested... Char size might not always be the same. I did
however change my header to array[0..1] of byte instead.




But then you still cannot do:

if header.id='HS' then
  // magic is correct.

That is why I proposed a static array of char.

Vincent

_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to