Hi, It looks like TMemoStrings does not implement PutObject. This makes AddObject would only add the string part and ignored the object.
For your case I think the quickest workaround would be to maintain an instance of TObjectList as the objects container. Use the index to maintain relationship between the two. Best regards, Luthfi --- On Tue, 12/11/12, John Barrat <[email protected]> wrote: > From: John Barrat <[email protected]> > Subject: What is the best way to add objects to TMemo.Lines > To: "'Moderated List for the Discussion of Delphi Programming excluding > Database-related topics'" <[email protected]> > Date: Tuesday, December 11, 2012, 11:38 PM > I seems TMemo.lines only supports the > String part of a TStrings not the > Objects. > > TMemo.Lines.AddObject compiles fine in fact only the string > component is > actually loaded. > > > > I need to store an object with this TMemo - how do you > recommend I do this? > > > > JohnB _______________________________________________ Delphi mailing list [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

