I've been wondering about this for some time and now I need to iterate over the strings to view them but I can't when using TStrings. And the only way to do it is to create a temporary TStringList var and assign the TStrings over to it. Then, I can step through the list to observe what is going on during debug. It seems like extra work to me. Anyway. See below for ex of how I have to create the extra work. It is not the actual code but just an example of some of it.
function inlist(myts: tstrings): tstringlist;
var
tsL: tstringlist;
begin
myts := tstrings.create(self)
tsL := tstringlist.create;
tsL.assign(myts);
.
.
s:=s; // <-- debug breat point
result.assign(tsL);
tsL.free;
end;
procedure TForm1.btn3Click(Sender: TObject);
var
ts: tstrings;
begin
ts := tstringlist.create;
ts := inlist(memo1.lines)
.
.
ts.free;
end;
In tstringlist, there is a FList that holds the strings. I searched in tstrings but there is none.
Surely, tstrings is storing the strings somewhere. I just need to know where so I can view them during debugging.
Does anyone know where tstrings stores the strings?