Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-06

Streaming TStringList with associated objects

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Kiên Nguyễn Tiến Trung
Show quoted text 5 lines
I have a TStringList containing some strings. Each strings is associated with an object typed TPersistent. I realize that, when streaming TStringList, all of associated objects are ignored. What I have to do?

You could a new TStringList descendent and override DefineProperties.

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 11 lines
On Fri, 19 Jun 2015 18:29:58 +0700 Ki?n Nguy?n Ti?n Trung wrote: > I have a TStringList containing some strings. Each strings is associated > with an object typed TPersistent. I realize that, when streaming > TStringList, all of associated objects are ignored. > > What I have to do? You could a new TStringList descendent and override DefineProperties.

Or use a collection.

Michael.

Reply by email