On Sat, Sep 10, 2022 at 6:01 PM James Richters via fpc-pascal
<fpc-pascal@lists.freepascal.org> wrote:

> Is there a way to get the highest element of a stringlist other than:
>
> For Loop := 0 to MyStringList.Count-1 do

You can use the for .. in loop.


> It would be nice to not have the -1
> Could High() be made to work if the argument was a stringlist?

Probabaly it could, but it's not likely going to happen.


-- 
Bart
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to