[fpc-pascal] represent data string in hex?

patspiper patspiper at gmail.com
Sun Sep 22 13:50:16 CEST 2013


On 22/09/13 14:38, wkitty42 at windstream.net wrote:
> On Saturday, September 21, 2013 12:03 PM, patspiper <patspiper at gmail.com> wrote:
>> On 21/09/13 18:56, wkitty42 at windstream.net wrote:
> [...]
>>> i haven't tried that... my understanding is that #xx depicts the decimal
>> format of the character...
>>> eg : $FF == #255
>> It is rather #$FF which is the same as #255, like Chr(255)
> this worked, pat... thanks for the pointer!
>
> but i'm still confused as to what # means to indicate... i've always understood it to indicate the decimal value of a raw byte whereas $ indicates the hex value of a raw byte... i haven't found anything showing the use of #$xxx though :/
This might help:
http://docwiki.embarcadero.com/RADStudio/XE5/en/Fundamental_Syntactic_Elements

>
> in any case, this worked and i'm a bit happier :) :) :)

:)

Stephano



More information about the fpc-pascal mailing list