Good afternoon everyone! I am doing full name search in a TMemo with Delphi, when the whole name is in the same line it works nice, but if part of the name is in one line and the other part in the next line, the search does not find. Any idea to solve this?
procedure TForm1.BitBtn4Click(Sender: TObject);
var
acha:string;
begin
if (Memo1.GetTextLen > 0) then
begin
zPessoa.First;
if not zPessoa.Eof then
repeat acha:=zPessoanome.Value;
if pos(acha, AnsiUpperCase(memo1.Lines.text))>0 then begin