PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
StringDelete (Function)
In french: ChaîneSupprime
Deletes:
  • all the occurrences of a substring within a string.
  • Versions 19 and later
    part of a string within another string. The part of the string to remove is identified by its position and length.
    New in version 19
    part of a string within another string. The part of the string to remove is identified by its position and length.
    part of a string within another string. The part of the string to remove is identified by its position and length.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 20 and later
Java This function is now available for Java applications.
New in version 20
Java This function is now available for Java applications.
Java This function is now available for Java applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
MyString = StringDelete("Antananarivo", "a")
// MyString = Antnnrivo
Versions 19 and later
WindowsLinuxUniversal Windows 10 AppJava
MyString = StringDelete("Antananarivo", 4, 1)
// MyString  = "Antnanarivo"

MyString1 = StringDelete("Example of sentence to delete", 8, 12)
// MyString1 = "Example to delete"
New in version 19
WindowsLinuxUniversal Windows 10 AppJava
MyString = StringDelete("Antananarivo", 4, 1)
// MyString  = "Antnanarivo"

MyString1 = StringDelete("Example of sentence to delete", 8, 12)
// MyString1 = "Example to delete"
WindowsLinuxUniversal Windows 10 AppJava
MyString = StringDelete("Antananarivo", 4, 1)
// MyString  = "Antnanarivo"

MyString1 = StringDelete("Example of sentence to delete", 8, 12)
// MyString1 = "Example to delete"
Syntax

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 (with quotes)
Initial string to use. This character string is not modified.
<Substring>: Character string or array of Ansi, Unicode or Binary characters (with quotes)
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:
WholeWordSearches for a whole word (between punctuation characters or spaces).
IgnoreCaseCase and accent insensitive search (ignores uppercase/lowercase differences).
By default, the search is case sensitive and it searches for all specified strings (even if they are part of a word).
Versions 19 and later
WindowsLinuxUniversal Windows 10 AppJavaUser code (UMC)

Deleting part of a string identified by its position and length Hide the details

<Result> = StringDelete(<Initial string> , <Position> , <Length>)
<Result>: Character string
String resulting from the deletion of a part of the string.
<Initial string>: Character string (with quotes)
Initial string to use (maximum size: 2 GB). This character string is not modified.
<Position>: Integer
Position of the part of the string to delete.
<Length>: Integer
Length of the part of the string to delete (in number of characters).
New in version 19
WindowsLinuxUniversal Windows 10 AppJavaUser code (UMC)

Deleting part of a string identified by its position and length Hide the details

<Result> = StringDelete(<Initial string> , <Position> , <Length>)
<Result>: Character string
String resulting from the deletion of a part of the string.
<Initial string>: Character string (with quotes)
Initial string to use (maximum size: 2 GB). This character string is not modified.
<Position>: Integer
Position of the part of the string to delete.
<Length>: Integer
Length of the part of the string to delete (in number of characters).
WindowsLinuxUniversal Windows 10 AppJavaUser code (UMC)

Deleting part of a string identified by its position and length Hide the details

<Result> = StringDelete(<Initial string> , <Position> , <Length>)
<Result>: Character string
String resulting from the deletion of a part of the string.
<Initial string>: Character string (with quotes)
Initial string to use (maximum size: 2 GB). This character string is not modified.
<Position>: Integer
Position of the part of the string to delete.
<Length>: Integer
Length of the part of the string to delete (in number of characters).
Business / UI classification: Neutral code
Component: wd260vm.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment