Inserts, deletes, or replaces a substring at the offset you specify in string.


icon

Inputs/Outputs

  • cstr.png string

    string is the string in which you want to replace characters.

  • cstr.png substring ("")

    substring contains the substring that replaces length characters at offset in string.

  • ci32.png offset (0)

    offset determines the number of characters into string at which the function places substring.

  • ci32.png length (len. of substring)

    length determines the number of characters in string to replace with substring.

    If substring is empty, length characters are deleted starting at offset.
  • istr.png result string

    result string contains the edited string with the replaced characters.

  • istr.png replaced substring

    replaced substring contains the characters that were replaced in string.

  • The Replace Substring function deletes length characters in string starting at offset, and replaces the deleted portion with substring. If length is 0, the Replace Substring function inserts substring at offset. If substring is empty, the Replace Substring function deletes length characters at offset.