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.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 19 and later
PHP This function is now available for PHP sites.
Windows Mobile This function is now available for Windows Mobile applications.
New in version 19
PHP This function is now available for PHP sites.
Windows Mobile This function is now available for Windows Mobile applications.
PHP This function is now available for PHP sites.
Windows Mobile This function is now available for Windows Mobile applications.
Versions 20 and later
Android This function is now available for Android applications.
Java This function is now available for Java applications.
Android Widget This function is now available in Android Widget mode.
New in version 20
Android This function is now available for Android applications.
Java This function is now available for Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
Android Widget This function is now available in Android Widget mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 25 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 25
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
Example
MyString = StringDelete("Antananarivo", "a")
// MyString = Antnnrivo
Versions 19 and later
WEBDEV - Browser codeWindowsLinuxUniversal Windows 10 AppWindows MobileAndroidAndroid Widget iPhone/iPadApple WatchJava
MyString = StringDelete("Antananarivo", 4, 1)
// MyString  = "Antnanarivo"

MyString1 = StringDelete("Example of sentence to delete", 8, 12)
// MyString1 = "Example to delete"
New in version 19
WEBDEV - Browser codeWindowsLinuxUniversal Windows 10 AppWindows MobileAndroidAndroid Widget iPhone/iPadApple WatchJava
MyString = StringDelete("Antananarivo", 4, 1)
// MyString  = "Antnanarivo"

MyString1 = StringDelete("Example of sentence to delete", 8, 12)
// MyString1 = "Example to delete"
WEBDEV - Browser codeWindowsLinuxUniversal Windows 10 AppWindows MobileAndroidAndroid Widget iPhone/iPadApple WatchJava
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
WEBDEV - Browser codeReports and QueriesWindowsLinuxUniversal Windows 10 AppWindows MobileAndroidAndroid Widget iPhone/iPadApple WatchJavaUser code (UMC)Ajax

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
WEBDEV - Browser codeReports and QueriesWindowsLinuxUniversal Windows 10 AppWindows MobileAndroidAndroid Widget iPhone/iPadApple WatchJavaUser code (UMC)Ajax

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).
WEBDEV - Browser codeReports and QueriesWindowsLinuxUniversal Windows 10 AppWindows MobileAndroidAndroid Widget iPhone/iPadApple WatchJavaUser code (UMC)Ajax

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