James Richters via fpc-pascal <[email protected]> schrieb am
Fr., 9. Sep. 2022, 14:58:

> I still end up with a lot of
> SetLength(MyArray,Length(MyArray)+1);
> Every time I want to add one more thing to the array.
>

With FPC 3.2.0 and newer you can do "Concat(MyArray, [TheNewElement])" or
(if modeswitch ArrayOperators is active) "MyArray := MyArray +
[TheNewElement]".

Regards,
Sven

>
_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to