[fpc-pascal] Re: pchar with more than 255 characters
    Bart 
    bartjunk64 at gmail.com
       
    Wed Nov 16 21:53:11 CET 2011
    
    
  
On 11/16/11, Jonas Maebe <jonas.maebe at 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
    
    
More information about the fpc-pascal
mailing list