- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
function CopyEx(s:string; index,count:integer):string;
var
len,ln:integer;
begin
ln:=0;
if index <1 then index:=1;
len:=length(s);
ln:=len-count;
dec(ln);
dec(len,(index+ln));
result:=copy(s,index,len);
end;
Копец?)