[fpc-pascal] represent data string in hex?

wkitty42 at windstream.net wkitty42 at windstream.net
Fri Sep 20 18:25:16 CEST 2013


i have a static array of strings that i need to fill as hex bytes... i can do this in decimal but it would be easier to convert other data if i can do it in hex since the data is represented in hex...

a[n] := #255;  // works
a[n] := $ff;     // does not work

ideally, there would be multiple bytes...

a[n] := $C2AD  or  a[n] := $C2$AD

help?





More information about the fpc-pascal mailing list