I need to check for a substring in each line of a TMemo, how can I get each line separately?
I'm using this method now:
Expand|Select|Wrap|Line Numbers
- int found;
- for (int i=1; i<MemoLines; i++)
- {
- String str = ShoppingBasketMemo->Lines->GetText();
- found = str.Pos(ProductNameForSearch);
- if (found!=0)
- ShoppingBasketMemo->Lines->Delete(i);
Can't also find any function to do that. Does anyone know this?