Janilabo

Janilabo | Stuff() [Simba]

Jun 20th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.32 KB | None | 0 0
  1. function Stuff(str, s: string; iFrom, iCount: Integer): string;
  2. begin
  3.   Result := Copy(str, 1, Length(str));
  4.   Delete(Result, iFrom, iCount);
  5.   Insert(s, Result, iFrom);
  6. end;
  7.  
  8. var
  9.   str: string;
  10.  
  11. begin
  12.   ClearDebug;
  13.   str := 'Stuff test to see this is working..!';
  14.   WriteLn(Stuff(str, '() WORKS', 6, 30));
  15. end.
Advertisement
Add Comment
Please, Sign In to add comment