[fpc-pascal] Get highest element of a StringList

James Richters james.richters at productionautomation.net
Mon Sep 12 16:37:55 CEST 2022


So.... I could just do this?

Index:= MyStringlist.IndexOfName(SearchName);
If Index >=0 then
   MyValue := MyStringlist[Index].ValueFromIndex;

That sure is nice to know, Thank you!

I guess for my dynamic arrays of records, I still need to search with a
loop... or is there a cool thing I don't know about for that as well?

James



More information about the fpc-pascal mailing list