PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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 sub-string inside a string.
  • Versions 19 and later
    a section of string inside a string. The part of string to remove is identified by its position and length.
    New in version 19
    a section of string inside a string. The part of string to remove is identified by its position and length.
    a section of string inside a string. The part of 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 the 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 the 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 the iPhone/iPad applications.
Versions 19 and later
PHP This function is now available for the PHP sites.
Windows Mobile This function is now available for the Windows Mobile applications.
New in version 19
PHP This function is now available for the PHP sites.
Windows Mobile This function is now available for the Windows Mobile applications.
PHP This function is now available for the PHP sites.
Windows Mobile This function is now available for the Windows Mobile applications.
Versions 20 and later
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
New in version 20
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the 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.
Example
MyString = StringDelete("Antananarivo", "a")
// MyString = Antnnrivo
Versions 19 and later
WindowsLinuxAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal 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
WindowsLinuxAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava
MyString = StringDelete("Antananarivo", 4, 1)
// MyString  = "Antnanarivo"

MyString1 = StringDelete("Example of sentence to delete", 8, 12)
// MyString1 = "Example to delete"
WindowsLinuxAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal 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 sub-string in a string Hide the details

<Result> = StringDelete(<String> , <Sub-string> [, <Options>])
<Result>: Ansi, Unicode or Binary string
Result string into which the deletion was performed.
<String>: Character string in Ansi, Unicode or Binary format (with quotes)
Character string to use.
<Sub-string>: Character string or array of Ansi, Unicode or Binary characters (with quotes)
Sub-string of characters that must be deleted from <String>. This string can correspond to:
  • a character string.
  • an array of character strings. In this case, all the sub-strings are deleted from <String>.
<Options>: Optional Integer constant
Mode used to find the sub-string:
WholeWordSearch for a whole word (enclosed in punctuation characters or in space characters).
IgnoreCaseSearch while ignoring the case (uppercase/lowercase characters) or the accented characters.
By default, the search is case sensitive and it searches for all the specified strings (even if they are part of a word).
Versions 19 and later
Reports and QueriesWindowsLinuxAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJavaAjaxUser 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
New character string where the deletion was performed.
<Initial String>: Character string (with quotes)
Character string where the deletion must be performed (maximum size: 2 GB).
<Position>: Integer
Position of the part of string to delete.
<Length>: Integer
Length of the piece of string to delete (expressed in number of characters).
New in version 19
Reports and QueriesWindowsLinuxAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJavaAjaxUser 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
New character string where the deletion was performed.
<Initial String>: Character string (with quotes)
Character string where the deletion must be performed (maximum size: 2 GB).
<Position>: Integer
Position of the part of string to delete.
<Length>: Integer
Length of the piece of string to delete (expressed in number of characters).
Reports and QueriesWindowsLinuxAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJavaAjaxUser 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
New character string where the deletion was performed.
<Initial String>: Character string (with quotes)
Character string where the deletion must be performed (maximum size: 2 GB).
<Position>: Integer
Position of the part of string to delete.
<Length>: Integer
Length of the piece of string to delete (expressed in number of characters).
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment