- repeat
- abs := 32000;
- for i := 3 to 80 do
- begin
- tempi := 0;
- str3 := copy(tempstr, aktpos, i);
- tempi := pos(str3, copy(tempstr, aktpos+i+1, length(tempstr)));
- if (tempi < abs) then if (tempi > 0) then
- begin
- abs := tempi;
- ii := i;
- end;
- end;
- if abs < 32000 then
- begin
- showmessage(IntToStr(abs));
- aktPos := aktPos + ii - 1;
- end;
- aktpos := aktpos + 1;
- until aktpos >= length(tempstr);