[fpc-pascal] Get highest element of a StringList
    Bart 
    bartjunk64 at gmail.com
       
    Sat Sep 10 19:03:00 CEST 2022
    
    
  
On Sat, Sep 10, 2022 at 6:01 PM James Richters via fpc-pascal
<fpc-pascal at 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
    
    
More information about the fpc-pascal
mailing list