PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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.
Example
MyString = StringDelete("Antananarivo", "a")
// MyString = Antnnrivo
Versions 19 and later
Windows
MyString = StringDelete("Antananarivo", 4, 1)
// MyString  = "Antnanarivo"

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

MyString1 = StringDelete("Example of sentence to delete", 8, 12)
// MyString1 = "Example to delete"
Windows
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 QueriesWindows

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 QueriesWindows

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 QueriesWindows

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).
Business / UI classification : Neutral code
Component : wd250vm.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment