[fpc-pascal] represent data string in hex?
Bart
bartjunk64 at gmail.com
Fri Sep 20 18:47:11 CEST 2013
On 9/20/13, wkitty42 at windstream.net <wkitty42 at windstream.net> wrote:
>
> a[n] := #255; // works
> a[n] := $ff; // does not work
>
> ideally, there would be multiple bytes...
>
> a[n] := $C2AD or a[n] := $C2$AD
>
Not sure what you want:
a[n] := #$FF; (which equals a[n] := #255)
a[n] := '$FF' (note the single quotes), assuming a[n] is of type String.
Bart
More information about the fpc-pascal
mailing list