ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / String functions
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
The following functions are used to handle strings, using prefix syntax:
<Ansi string type>.CompleteReturns a character string of a specified length.
<ANSI String type>.ContainsAllows you to check if a substring is within a string.
<Ansi string type>.DeleteDuplicateRemoves duplicates among substrings of a string, based on one or more separators.
<ANSI String type>.RightExtracts the right part (i.e., the last characters) from a string or buffer.
<ANSI string type>.ToNumReturns the numeric value of a character string. This feature enables you to perform numeric calculations on strings.
<ANSI string>.AnsiToOemConverts an ANSI string (Windows) to an OEM string (DOS).
<Buffer type>.AnsiToUnicodeConverts a buffer containing an ANSI string (Windows) to a buffer containing a UNICODE string.
New in version 2024
<Buffer type>.UTF8Valid
Checks the validity of a UTF-8 buffer.
<JSON variable>.ToStringConverts the content of a JSON variable to a JSON string.
<OEM string>.OemToAnsiConverts an OEM string (DOS) to an ANSI string (Windows).
<String type>.AnsiToUnicodeConverts an ANSI string (Windows) to a UNICODE string.
<String type>.BufferToHexaConverts an Ansi or Unicode string to a hexadecimal string (e.g.: "4A 5B 00").
<String type>.CharactTypeCountReturns the number of characters matching a given type.
<String type>.EndsWithChecks whether a character string ends:
  • with a specific character string.
  • with one of the character strings in an array.
<String type>.ExtractStringAllows you to:
  • extract a substring from a string based on a specified string separator.
  • search for substrings in a string based on a specified string separator.
<String type>.FormatFormats a character string according to the selected options.
<String type>.IncrementIncrements a number at the beginning or at the end of a string.
<String type>.InsertInserts a string into another character string at a given position.
<String type>.ReplaceReplaces all occurrences of a specified substring in a string with another specified substring.
<String type>.ReverseReverses the characters of a string.
<String type>.SplitExtracts all the substrings from a character string based on one or more string separators.
<String type>.StartsWithChecks whether a character string starts:
  • with a specific character string.
  • with one of the character strings in an array.
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/06/2024

Send a report | Local help