Re: [Lazarus] Got "Pointer", expected "Open Array Of Char"

2013-01-13 Thread Florian Klämpfl
leledumbo schrieb: >Actually, rather than continuing this, if what you need is only to copy >a >dynamic array then you can simply: > >dst := Copy(src,0,Length(src)); dst:=Copy(src); works as well. -- ___ Lazarus mailing list Lazarus@lists.lazar

Re: [Lazarus] Startlazarus starting "wrong" Lazarus

2013-01-13 Thread Mark Morgan Lloyd
Giuliano Colla wrote: Il 13/01/2013 13:57, leledumbo ha scritto: What's the output of: which lazarus "which lazarus" can't be aware of a lazarus executable in ~/.lazarus/bin/. That's handled by startlazarus. which startlazarus -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinio

Re: [Lazarus] Startlazarus starting "wrong" Lazarus

2013-01-13 Thread Giuliano Colla
Il 13/01/2013 13:57, leledumbo ha scritto: What's the output of: which lazarus "which lazarus" can't be aware of a lazarus executable in ~/.lazarus/bin/. That's handled by startlazarus. Giuliano -- ___ Lazarus mailing list Lazarus@lists.lazarus.fre

Re: [Lazarus] Got "Pointer", expected "Open Array Of Char"

2013-01-13 Thread Dave Coventry
On 13 January 2013 17:14, leledumbo wrote: > dst := Copy(src,0,Length(src)); Thank you. It's not quite that simple, but I'll bear that technique in mind. :+) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepas

Re: [Lazarus] Got "Pointer", expected "Open Array Of Char"

2013-01-13 Thread leledumbo
Actually, rather than continuing this, if what you need is only to copy a dynamic array then you can simply: dst := Copy(src,0,Length(src)); -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Got-Pointer-expected-Open-Array-Of-Char-tp4028513p4028525.html

Re: [Lazarus] Got "Pointer", expected "Open Array Of Char"

2013-01-13 Thread Howard Page-Clark
On 13/1/13 1:58, Dave Coventry wrote: On 13 January 2013 14:56, leledumbo wrote: Or const since it's meant to be read only Hmmm. Doesn't help. Still getting the same error. I've tried passing the src parameter as a Pointer and then casting it as an array of Char. procedure Copybytes(var ds

Re: [Lazarus] Got "Pointer", expected "Open Array Of Char"

2013-01-13 Thread Dave Coventry
On 13 January 2013 14:56, leledumbo wrote: > Or const since it's meant to be read only Hmmm. Doesn't help. Still getting the same error. I've tried passing the src parameter as a Pointer and then casting it as an array of Char. procedure Copybytes(var dst: Pointer; src: Pointer; len: integer);

Re: [Lazarus] Startlazarus starting "wrong" Lazarus

2013-01-13 Thread leledumbo
What's the output of: which lazarus -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Startlazarus-starting-wrong-Lazarus-tp4028516p4028522.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___

Re: [Lazarus] Got "Pointer", expected "Open Array Of Char"

2013-01-13 Thread leledumbo
> I think making src also a var parameter... Or const since it's meant to be read only -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Got-Pointer-expected-Open-Array-Of-Char-tp4028513p4028521.html Sent from the Free Pascal - Lazarus mailing list archiv