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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Allows you to check if a substring is within a string.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
Stored procedures This function is now available in the code of stored procedures.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Stored procedures This function is now available in the code of stored procedures.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Stored procedures This function is now available in the code of stored procedures.
Versions 19 and later
WEBDEV - Browser code This function is now available in Browser code.
Java This function is now available for Java applications.
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
New in version 19
WEBDEV - Browser code This function is now available in Browser code.
Java This function is now available for Java applications.
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
WEBDEV - Browser code This function is now available in Browser code.
Java This function is now available for Java applications.
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
Versions 20 and later
PHP This function is now available for PHP sites.
New in version 20
PHP This function is now available for PHP sites.
PHP This function is now available for PHP sites.
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
sMyString is string = "Antananarivo"
IF Contains(sMyString, "NA") = False THEN
Info("This string does not contain the NA syllabus")
END
arrString is array of strings = ["WINDEV","WEBDEV"]
sTest is string = "WEBDEV 22"
 
IF Contains(sTest, arrString) THEN
Info("This string contains WINDEV or WEBDEV")
END
Syntax

Checking if a string contains a substring Hide the details

<Result> = Contains(<String to analyze> , <Substring> [, <Options>])
<Result>: Boolean
  • True if the string contains a substring.
  • False otherwise.
<String to analyze>: Ansi, Unicode or Binary string
Character string to use.
<Substring>: Ansi, Unicode or Binary string
Search substring.
<Options>: Integer constant
Method to search for 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 takes into account all specified strings (even if they are part of a word).

Checking if a string contains one of the strings in an array Hide the details

<Result> = Contains(<String to analyze> , <Array of search strings> [, <Options>])
<Result>: Boolean
  • True if the string contains one of the strings in the array.
  • False otherwise.
<String to analyze>: Ansi, Unicode or Binary string
Character string to use.
<Array of search strings>: Array
Name of the array containing the search strings.
<Options>: Integer constant
Method to search for 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 takes into account all specified strings (even if they are part of a word).
Component: wd270vm.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment