Hi
Well, I finally got my shijt together and done it
edit: new version out now 9.28.11.2024 which adds 2 new overloaded 'AddOrSet' to 'IStrings' (see last post).For the longest time I've been missing an easy no frills way to do this:
procedure TfrmIntfMain.btnUtf8Click(Sender: TObject);
var lst: IStringList;
begin
if dlgOpen.Execute then begin
lst:= CreateStrList;
lst.LoadFromFile(dlgOpen.FileName);
// do some processing of lst-data
Memo1.Clear;
Memo1.Caption:= lst.Text;
end;
end;
I mean without
sl:= TStringlist.Create;
try
// use the list
finally
sl.Free;
end;
...and now finally(pun intended) I can
You too if you so desire, I've made it public (i think) on my gitlab.
It's free for anyone to download and use, in the hope it can be of use to others.
Mind you, I'm not proficient in /gitlab'ing/ so I've tried my best to make it public...
Here it is:
https://gitlab.com/cdbc-public/ibcstringlistEnjoy
Regards Benny