On 12/09/2022 14:16, James Richters via fpc-pascal wrote:
The problem with the for in loop is that I need the index.

Hi James,

You don't need a loop for that:

 index:=MyStringlist.IndexOfName;

see: https://www.freepascal.org/docs-html/rtl/classes/tstrings.indexofname.html

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

Reply via email to