[fpc-pascal] Heterogenous list of objects

2008-01-22 Thread g . marcou
Hi, I'd like to manage a list of heterogenous objects. For instance, I have a list of objects to buy in store: cheeses (of class TCheese), soaps (of class TSoap), flowers (of class TFlower), etc... I thought to gather pointers to different objects of these classes in a TList. But, when it

Re: Re: [fpc-pascal] Heterogenous list of objects

2008-01-22 Thread g . marcou
Hi all, thanks for your kind and fast answer. Effectively, TObjectList is what I need. Thanks to Damien, I understand a bit better how it works. But in my case I believe that I need to use some kind of TList of TObjectList. So is it possible to build a class that will have TObjecList mem

Re: [fpc-pascal] XML Programming..

2008-02-12 Thread g . marcou
Hi, I used some tutorial: http://wiki.lazarus.freepascal.org/Networking http://www.thomas-zastrow.de/texte/fpcxml/dom-reading.php The XML support is done using the FCL's units DOM, XMLRead, XMLWrite. I recommand you to take a look in Lazde. This is the documentation editor of Lazarus. It is

[fpc-pascal] Basic question about TStringList

2008-03-27 Thread g . marcou
Hi, I seek help to clarify a very basic use of TStringList. Let A and B be TStringLists. What is the difference between: A:=B; and A.Assign(B); ? Thanks in advance for your help, Gilles Marcou ___ fpc-pascal maillist - fpc-pascal@lists.freepasc

Re: [fpc-pascal] Basic question about TStringList

2008-03-27 Thread g . marcou
Hi, thanks for your very clear answer. In fact this is chilling me as I am thinking to the huge amount of memory leaks that I certainly have in my developements... This means that whenever the assignement operator ":=" is used with TStringLists, the recieving list shall never be created!