Jump to content
Janilabo

Stuff

Recommended Posts

SCAR version of Delphi's StuffString.

Example included.

 

Stuff

[scar]function Stuff(str, s: string; iFrom, iCount: Integer): string;

begin

Result := Copy(str, 1, Length(str));

Delete(Result, iFrom, iCount);

Insert(s, Result, iFrom);

end;

 

var

str: string;

 

begin

ClearDebug;

str := 'Stuff test to see this is working..!';

WriteLn(Stuff(str, '() WORKS', 6, 30));

end.[/scar]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...