procedure TForm1.btnPasarClick(Sender: TObject);
var
i: Integer;
TS1,TS2: TStrings;
begin
Memo3.Clear;
TS1:= TStringList.Create;
TS2:= TStringList.Create;
try
ExtractStrings([' ',',',';','.'],[],PChar(Memo1.Text),TS1);
ExtractStrings([' ',',',';','.'],[],PChar(Memo2.Text),TS2);
for i:= 0 to TS1.Count-1 do
if TS2.IndexOf(TS1[i])= -1 then
Memo3.Lines.Add(TS1[i]);
for i:= 0 to TS2.Count-1 do
if TS1.IndexOf(TS2[i]) = -1 then
Memo3.Lines.Add(TS2[i]);
finally
TS1.Free;
TS2.Free;
end;
end;