howardpc wrote this code in answer to a questions I posted on August 27, 2021, in the beginner section titled ' Parsing a really Long string 620 char'.
procedure ParseForPhrase(const sToParse, sPhrase: String; SL: TStrings);
The SL : TStrings needed to be changed to TStringList.
I don't know. I was getting a compiler error of item not found on the line
else SL.Add(Trim S)); Changed it to TstringList and it works.
Notice that having declared SL as TStrings allows you to call this procedure with all kinds of TStrings derived classes, not just a TStringList.Yes, indeed, but OP should note that e.g. Tstringlist functionality that is not in TStrings requires a cast to Tstringlist.
You could e.g. use it with TMemo.Strings, TComboBox.Items etc.
Bart