[fpc-pascal] WORD (2 bytes) to String conversion
Vincent Snijders
vsnijders at vodafonevast.nl
Sat Oct 24 09:54:14 CEST 2009
Graeme Geldenhuys schreef:
> On 23/10/2009, Vincent Snijders <vsnijders at vodafonevast.nl> 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
More information about the fpc-pascal
mailing list