var tmpStr: string; iCount: integer; b:boolean;begin b := false; iCount := 1; tmpStr := trim(edit1.Text); while length(tmpStr) >0 do begin if (ord(tmpStr[iCount])> 128)and b then begin memo1.Lines.Add(copy(tmpStr,1,icount)) ; tmpStr := Copy(tmpStr,iCount,length(tmpStr)-icount+1); iCount := 1; b := false; end; if (iCOunt=length(tmpStr)) then begin memo1.Lines.Add(copy(tmpStr,1,icount)) ; break; end; if (ord(tmpStr[iCount])<128) and(ord(tmpStr[iCount+1])>128) then b := true; inc(iCount); end;