In french: ChaîneSupprime
- all the occurrences of a substring within a string.
- part of a string within another string. The part of the string to remove is identified by its position and length.
MyString = StringDelete("Antananarivo", "a")
// MyString = Antnnrivo
Deleting all the occurrences of a substring in a string Hide the details
<Result> = StringDelete(<Initial string> , <Substring> [, <Options>])
<Result>: Ansi, Unicode or Binary string
String resulting from the deletion of the substrings.
<Initial string>: Ansi, Unicode or Binary string
Initial string to use. This character string is not modified.
<Substring>: Character string or array of Ansi, Unicode or Binary characters
Substring that will be deleted from <String>. This string can correspond to:
- a character string.
- an array of character strings. In this case, all the substrings are deleted from <String>.
<Options>: Optional Integer constant
Mode used to find the substring:
|IgnoreCase||Case and accent insensitive search (ignores uppercase/lowercase differences).|
|WholeWord||Searches for a whole word (between punctuation characters or spaces).|
By default, the search is case sensitive and it searches for all specified strings (even if they are part of a word).
Business / UI classification: Neutral code
This page is also available for…