[fpc-pascal] WORD (2 bytes) to String conversion

Graeme Geldenhuys graemeg.lists at gmail.com
Sat Oct 24 10:10:27 CEST 2009


2009/10/24 Vincent Snijders <vsnijders at vodafonevast.nl>:
>
> But then you still cannot do:
>
> if header.id='HS' then
>  // magic is correct.
>
> That is why I proposed a static array of char.


No, but I can do this... which is sufficient.

var
  s: string
begin
  s := hdr^.ID;
  if S = "HS" then
    ...


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-pascal mailing list