Hi everyone,
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:
But it is giving me all lines together into str, i can't separate them out.
Can't also find any function to do that. Does anyone know this?
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:
Code:
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?
Comment