<p>Am 21.08.2017 13:51 schrieb "Sven Barth" <<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>>:<br>
><br>
> Am 21.08.2017 08:23 schrieb "Michael Van Canneyt" <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>:<br>
> ><br>
> ><br>
> ><br>
> > On Mon, 21 Aug 2017, Ryan Joseph wrote:<br>
> ><br>
> >> I’m trying to split a string by a delimiter and see there is a type helper called TStringHelper (<a href="https://www.freepascal.org/docs-html/rtl/sysutils/tstringhelper.html">https://www.freepascal.org/docs-html/rtl/sysutils/tstringhelper.html</a>). The compiler version I’m using is "Free Pascal Compiler version 3.1.1 [2017/04/22] for i386” but when I include SysUtils the methods are not found.<br>
> >><br>
> >> For example:<br>
> >><br>
> >> var<br>
> >> str: string;<br>
> >> parts: TStringArray;<br>
> >><br>
> >> parts := str.Split(' ‘);<br>
> >><br>
> >><br>
> >> What am I doing wrong?<br>
> ><br>
> ><br>
> > Try<br>
> ><br>
> > var<br>
> > Str : AnsiString;<br>
> > or<br>
> > Str : WideString;<br>
> ><br>
> > I believe the compiler has some trouble finding the helper if you use the<br>
> > 'string' alias. I think there is even a bugreport about it.<br>
> > Sven Barth can confirm/deny this.<br>
><br>
> I thought that was fixed? Except of course if $H- is used (which is the default in all modes except the Delphi ones) cause then String = AnsiString.</p>
<p>String = ShortString in case of $H- of course -.-</p>
<p>Regards,<br>
Sven</p>