[fpc-pascal] Remove last character from pchar

James Richters james.richters at productionautomation.net
Thu Jun 10 20:24:11 CEST 2021


Also StrPCopy will take the contents of an existing PChar and put it in an AnsiString…
And sometimes I have regular pascal strings I want to pass to something as a Pchar, so then I do:
Pchar(AnsiString(mystring));
But lately I’ve been just making all strings AnsiStrings anyway.
 
 
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20210610/896687ff/attachment-0001.htm>


More information about the fpc-pascal mailing list