[fpc-pascal] Concat TCollection?

Michael Van Canneyt michael at freepascal.org
Sun May 3 11:58:22 CEST 2020



On Sun, 3 May 2020, Ryan Joseph via fpc-pascal wrote:

>
>
>> On May 3, 2020, at 4:04 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
>> 
>> Just set the Collection property of the items to the concatenated collection instance.
>> 
>> Note that this effectively moves the items.
>
> That means I'll need to set it back later right? The original lists are being kept alive because they may need to be streamed also.

If you want to reuse the original collections: Yes. 
A collection item belongs only to 1 collection.

Michael.


More information about the fpc-pascal mailing list