Hello
I tried to create an Objectlist, worked !
Next step was to Specialize the Object List and i got some strange error.
Here the Code:
uses contnrs, uTCar;
TCarLIst = specialize TObjectList<TCar>;
var
CarList: TCarList;
Procedure Form.Create(Sender: TObject);
begin
//CarList:= TCarList.Create;
CarList:= specialize TObjectList<TCar>
end;
After doing this i tried to access the List like this:
When i tried to press Ctrl + Space, it jumped to this line:
TCarList = specialize TObjectList<TCar>;
and told me following: "General identifier expected but TObjectList found"
Tried the Code from this post:
https://forum.lazarus.freepascal.org/index.php?topic=43625.0but did not work. am i missing Something ?
Any Help is welcome
EDIT: Works with TFPGObjectList... whats the difference. Source forge told me that TFPGObjectList is only for Specializing lists (if i understood it correctly). Could Someone please tell me the difference ?