On 12/09/2022 15:37, James Richters via fpc-pascal wrote:
So.... I could just do this?Index:= MyStringlist.IndexOfName(SearchName); If Index >=0 then MyValue := MyStringlist[Index].ValueFromIndex;
Hi James, I would probably do try with MyStringList do MyValue:=ValueFromIndex[IndexOfName(SearchName)]; except MyValue:=''; end; cheers, Martin. _______________________________________________ fpc-pascal maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
