Am 16.11.2011 17:06, schrieb Martin:
As mentioned before by someone else: length does read a field from the string, which does not exist in pchar (hence string can contain #0 and pchar can not).
Jonas mentioned in another mail in this thread (as an answer to Felipe) that "Length(PChar)" is converted to "StrLen(PChar)" which is Delphi compatible.
Regards, Sven _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal