<div dir="ltr">Hello,<div><br></div><div>How do I use the TStringHelper with SysUtils functions?</div><div><br></div><div>When I've tried to compile this code:</div><div><br></div><div>=== code ===</div><div><br></div><div><div>program Project1;</div><div><br></div><div>{$mode objfpc}{$H+}</div><div><br></div><div>uses</div><div>  SysUtils;</div><div><br></div><div>begin</div><div>  WriteLn(ExtractFileExt(ParamStr(0)).Substring(1));</div><div>  ReadLn;</div><div>end.</div></div><div><br></div><div>=== /code ===</div><div><div><br></div><div>I've got: </div><div><br></div><div><div><font face="monospace, monospace">project1.lpr(9,39) Error: Illegal qualifier</font><br></div></div><div><br></div><div>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.</div><div><br></div><div>Thank you!</div><div><br></div>--<br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>