[fpc-pascal] TStringList

Michael Van Canneyt michael at freepascal.org
Mon Jan 14 15:23:30 CET 2008



On Mon, 14 Jan 2008, Damien Gerard wrote:

> 
> I often use TObjectLis, which is able to destroy by itself objects in its
> list.
> However, is it the same with a TStringList when an object is added with
> AddObject ?

No.

> 
> I mean when the method .Clear or Delete are called, is my associated object is
> destroyed in the same time ?

No.

> I suppose there is not the case due to there is not the property OwnObject as
> in a TObjectList.

Exactly.

Michael.



More information about the fpc-pascal mailing list