Replace Substring Function

Owning Palette: String Functions

Requires: Base Development System

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

Details  

 Add to the block diagram  Find on the palette
string is the string in which you want to replace characters.
substring contains the substring that replaces length characters at offset in string.
offset determines the number of characters into string at which the function places substring.
length determines the number of characters in string to replace with substring. If substring is empty, length characters are deleted starting at offset.
result string contains the edited string with the replaced characters.
replaced substring contains the characters that were replaced in string.

Replace Substring Details

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.