On 11/16/11, Jonas Maebe <jonas.ma...@elis.ugent.be> wrote:

> Again: length(pchar) is perfectly correct and will be translated into
> strlen(pchar), just like in Delphi (and probably even like in TP).

Couldn't resist;

Turbo Pascal 6.0:

Program Prog;

uses objects;

var
  pc: PChar;
  Len: Integer;
begin
  Len := Length(pc|);
end.

Error 67: String expression expected.  (| indicates the cursor)

Bart
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to