Not sure if this is the right section of the forum.
I am using a TStringList, adding lines of text, and some lines have an object associated with them, with Add or AddObject. This works fine, and I can retrieve individual lines of text ok.
But I cannot figure out how to retrieve an object associated with a line. I'be looked at the code and all the documentation that I can find. Could someone please just respond with a single line of code that retrieves the object assocuated with a specifie line in the TStringList?
I have tried things like
mylist.objects;
mylist.object;
mylist.GetObject(I);
mylist.GetObject;
but all of these are apparently wrong. I've seen lots of stuff about using TStringList, intriductory to very complex, but cannot find the answer to the above seemingly trivial question.
FI