[fpc-pascal] represent data string in hex?

Sven Barth pascaldragon at googlemail.com
Sun Sep 22 19:25:31 CEST 2013


On 22.09.2013 13: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 :/

'#' indicates a character. This is followed by either a decimal or 
hexadecimal ('$') value (maybe - in FPC - binary ('%') and octal ('&') 
values are possible as well).

Regards,
Sven




More information about the fpc-pascal mailing list