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

Dave Coventry dgcoventry at gmail.com
Sat Jan 12 06:02:14 CET 2013


Hi,

I have a procedure defined as follows:

procedure Copybytes(var dst: array of Char; src: array of Char; len: integer);

If I call it using the following:

Copybytes(@dst[dloc], at src[sloc],16);

I get an error:

dwg.pas(116,36) Error: Incompatible type for arg no. 2: Got "Pointer",
expected "Open Array Of Char"

Can anyone suggest a solution?

Kind Regards,

Dave Coventry




More information about the Lazarus mailing list