Re: [fpc-pascal] represent data string in hex?

2013-09-22 Thread wkitty42
On Saturday, September 21, 2013 12:03 PM, patspiper patspi...@gmail.com wrote: On 21/09/13 18:56, wkitt...@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

Re: [fpc-pascal] represent data string in hex?

2013-09-22 Thread wkitty42
On Sunday, September 22, 2013 7:38 AM, wkitt...@windstream.net wrote: this worked, pat... thanks for the pointer! oops... i meant Stephano... sorry... damned webmail drek sucks... ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] represent data string in hex?

2013-09-22 Thread patspiper
On 22/09/13 14:38, wkitt...@windstream.net wrote: On Saturday, September 21, 2013 12:03 PM, patspiper patspi...@gmail.com wrote: On 21/09/13 18:56, wkitt...@windstream.net wrote: [...] i haven't tried that... my understanding is that #xx depicts the decimal format of the character... eg :

Re: [fpc-pascal] represent data string in hex?

2013-09-22 Thread Sven Barth
On 22.09.2013 13:38, wkitt...@windstream.net wrote: On Saturday, September 21, 2013 12:03 PM, patspiper patspi...@gmail.com wrote: On 21/09/13 18:56, wkitt...@windstream.net wrote: [...] i haven't tried that... my understanding is that #xx depicts the decimal format of the character... eg

Re: [fpc-pascal] represent data string in hex?

2013-09-22 Thread wkitty42
On Sunday, September 22, 2013 1:25 PM, Sven Barth pascaldra...@googlemail.com wrote: On 12209201313:38, wkitt...@windstream.net wrote: On Saturday, September 21, 2013 12:03 PM, patspiper patspi...@gmail.com wrote: On 21/09/13 18:56, wkitt...@windstream.net wrote: [...] i

Re: [fpc-pascal] represent data string in hex?

2013-09-21 Thread patspiper
On 21/09/13 12:15, wkitt...@windstream.net wrote: On Friday, September 20, 2013 12:47 PM, Bart bartjun...@gmail.com wrote: On 9/20/13, wkitt...@windstream.net wkitt...@windstream.net wrote: a[n] := #255; // works a[n] := $ff; // does not work ideally, there would be multiple bytes...

Re: [fpc-pascal] represent data string in hex?

2013-09-21 Thread wkitty42
On Saturday, September 21, 2013 6:27 AM, patspiper patspi...@gmail.com wrote: On 21/09/13 12:15, wkitt...@windstream.net wrote: [trim] yeah, the singles are bad examples... i'm really wanting the multiple byte format to work... i tried both and was told expected string but found byte

Re: [fpc-pascal] represent data string in hex?

2013-09-21 Thread patspiper
On 21/09/13 18:56, wkitt...@windstream.net wrote: On Saturday, September 21, 2013 6:27 AM, patspiper patspi...@gmail.com wrote: On 21/09/13 12:15, wkitt...@windstream.net wrote: [trim] yeah, the singles are bad examples... i'm really wanting the multiple byte format to work... i tried both

Re: [fpc-pascal] represent data string in hex?

2013-09-21 Thread wkitty42
On Saturday, September 21, 2013 12:03 PM, patspiper patspi...@gmail.com wrote: On 21/09/13 18:56, wkitt...@windstream.net wrote: On Saturday, September 21, 2013 6:27 AM, patspiper patspi...@gmail.com wrote: On 21/09/13 12:15, wkitt...@windstream.net wrote: ... a[n] :=

Re: [fpc-pascal] represent data string in hex?

2013-09-20 Thread Bart
On 9/20/13, wkitt...@windstream.net wkitt...@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

[fpc-pascal] represent data string in hex?

2013-09-20 Thread wkitty42
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