I'm trying to search for a text in stringlist. I have before used the Pos funktion, but then I have to run throug every line in the StringList and it will take a long time. Then I saw TStringList.Find. Cool, but I have some problems with it. As you can see in the code, I had added some line with ";" as delimiter. I know want to search for "ASO" but it will not work, because the line contain more than just ASO.
I hope the Find is faster than the POS.
Does anyone have an idea on how to solve this?
strPhoneList := TStringlist.Create;
if strPhoneList.Find('ASO',index) then
strTest := strPhoneList[index];
for count := 1 to 4 do
strTest := strTest;