I'm having a TEdit
, TMemo
and a button. When the user presses the button, I want to delete from that memo control a line matching the text entered in the edit box. If no matching line is found, some sort of "line not found" message should be displayed.
I'm new to Delphi and don't know any code for this, but in theory it should work on the principle of searching the TMemo
until it finds a line that matches Edit.Text
and then deletes that specific line.
Could someone show me how to delete a line found by text from a TMemo
control?