[fpc-pascal] WORD (2 bytes) to String conversion
Graeme Geldenhuys
graemeg.lists at gmail.com
Fri Oct 23 14:53:35 CEST 2009
2009/10/23 Aleksa Todorovic <alexione at gmail.com>:
>
> w: WORD
> ...
> YourString := Chr(Lo(w)) + Chr(Hi(w))
> or
> YourString := Chr(Hi(w)) + Chr(Lo(w))
Ah, thanks. I was close, I used High() and Low() instead. :-( Dope!
--
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-pascal
mailing list