tobjectlist Questions

1

Solved

I'm trying to create TObjectList class in Delphi XE8, but i get errors when i try to get the value. compiler error message: "[dcc32 Error] : can't access to private symbol {System.Generics.Colle...
Frill asked 25/4, 2015 at 20:2

1

Solved

I am using a TObjectList (Delphi 2007) to store A LOT of data- I expect to have around 300 thousand elements or even more. However, when a list is created, it's default size is set to store only fo...
Hennery asked 17/10, 2012 at 12:9

2

Solved

I have problem with my code, which uses generic types. Why doesn't the compiler know that the passed list (Result) is a TObjectList<TItem> (TItem is type for T in TItems)? Interface: type ...
Scrivenor asked 27/4, 2012 at 16:47

3

Solved

I have just started to use generics, and I am currently having a problem doing sorting on multiple fields. Case: I have a PeopleList as a TObjectList<TPerson> and I want to be able to make a...
Sectary asked 29/12, 2011 at 20:1

2

Solved

I have a TObject list (FileEventObjects := TObjectList.Create(True);) containing one or more objects. The objects need to stay in the list until they are processed. (The object list exists for the ...
Airplane asked 1/7, 2011 at 12:9

8

Solved

*Summarization: Please check the knowledgeable comments from the Delphi experts. Specifically for me, I would try to use old TList/TObjectList as David suggested, and use hard-cast and TObjectList...
Nectarine asked 18/3, 2011 at 12:32

3

Solved

Summarization: TList.IndexOf (TList defined in the unit Classes.pas) iterates linearly through the contained items, and compares the reference. TList.IndexOf (TList defined in the unit Generics.Co...
Robb asked 10/3, 2011 at 21:15

3

Solved

I want to sort my generic tobjectlist using the built-in sort method. here is what I do: //create the list object myList := TObjectList<MyType>.Create(false); [...] //populate the list wi...
Milklivered asked 24/1, 2011 at 16:20

2

Solved

I think i need a nudge in the right direction: I have two Tobjectlists of the same datatype, and i want to concatenate these into a new list into which list1 shall be copied (unmodified) followed ...
Roryros asked 17/5, 2010 at 9:23
1

© 2022 - 2024 — McMap. All rights reserved.