[fpc-pascal] TStringHelper with SysUtils functions
silvioprog
silvioprog at gmail.com
Wed Apr 13 02:42:49 CEST 2016
Hello,
How do I use the TStringHelper with SysUtils functions?
When I've tried to compile this code:
=== code ===
program Project1;
{$mode objfpc}{$H+}
uses
SysUtils;
begin
WriteLn(ExtractFileExt(ParamStr(0)).Substring(1));
ReadLn;
end.
=== /code ===
I've got:
project1.lpr(9,39) Error: Illegal qualifier
A possible fix would be changing the TStringHelper declaration from
"TStringHelper = Type Helper for AnsiString" to "TStringHelper = Type
Helper for string" keeping it Delphi compatible.
Thank you!
--
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160412/8a70ff3f/attachment.html>
More information about the fpc-pascal
mailing list