James Richters via fpc-pascal schrieb am
Di., 8. Sep. 2020, 20:07:
> What’s the difference between TList and TFPGList? Which one is better
> for this example?
>
The main difference is that TFPGList ist a generic, thus when you
specialize it with your record you'll have a typesafe object where yo
..@productionautomation.net>
> , "FPC-Pascal users discussions" <mailto:fpc-pascal@lists.freepascal.org> >
> Datum: 08.09.2020 16:21
> Předmět: Re: [fpc-pascal] TFPObjectlist example
>
__
> Od: "J
it comfortably
MyList[1].Port:='abc';
V.
__
Od: "Vojtěch Čihák via fpc-pascal"
Komu: ja...@productionautomation.net, "FPC-Pascal users discussions"
Datum: 08.09.2020 16:21
Předmět: Re: [fpc
#x27;;
V.
__
Od: "James Richters via fpc-pascal"
Komu: "'FPC-Pascal users discussions'"
Datum: 07.09.2020 01:08
Předmět: [fpc-pascal] TFPObjectlist example
James
___
fpc-pascal maillist
> On Sep 7, 2020, at 6:07 AM, James Richters via fpc-pascal
> wrote:
>
> Does anyone have an example of how to use TFPObjectlist?
It just frees objects that are removed from the list (or when the list is
freed).
list:= TFPObjectlist.Create;
list.Add(TObject.Create);
list.Free;
in that ex
Am I correct that TFPObjectlist is kind of like Tstringlist, except instead of
creating and array of strings, it creates an array of objects?
I'm wanting to do something like that but I don't know how to define the
object.. I'm guessing it would be something like a record
I'm wanting to end up