Ok. Do you know a way to allocate a new PString?. In Delphi NewStr does it.
--- Peter Vreman <[EMAIL PROTECTED]> wrote: > At 14:41 4-9-2006, you wrote: > >I found that the documentation of the rtl (objects unit) contains a > >small error in the Synopsis of > >the NewStr function. > > > >It says: > > "Synopsis: Allocate a copy of a SHORTSTRING on the heap." > > > >I think you should replace the word SHORTSTRING by STRING. > > No, shortstring is correct. It doesn't work for example with ansistring > > > Peter > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > Leonardo M. Ramé http://leonardorame.blogspot.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal