ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Version: 2025

Character string: How do I extract, delete or replace words?
This page presents the main operations that can be performed on a character string.
Functions for managing RTF controls
List of functions for managing RTF controls
<Table>.ToText (Function)
Creates a character string from the data found in a Table or TreeView Table control.
CharactTypeCount (Function)
Returns the number of characters matching a given type.
TableToText (Function)
Creates a character string from the data found in a Table or TreeView Table control.
StringDeleteDuplicate (Function)
Removes duplicates among substrings of a string, based on one or more separators.
<ANSI string>.EndsWith (Function)
Checks whether a character string ends with:
  • with a specific character string.
  • with one of the character strings in an array.
StringToJSON (Function)
Converts a JSON string into a JSON variable.
<ANSI string>.DeleteDuplicate (Function)
Removes duplicates among substrings of a string, based on one or more separators.
TimeToString (Function)
Converts a time to a string in the specified format.
FOR ALL/FOR EACH statement (browse of strings)
The FOR EACH statement is used to browse strings according to different methods...
<ANSI string>.Increment (Function)
Increments a number at the beginning or at the end of a string.
XMLToText (Function)
Converts a character string in XML format into a standard character string.
Translating programming messages
When developing a multilingual application, you can translate the different messages displayed to the user (messages displayed by Info and YesNo, for example.
String functions (prefix syntax)
The following functions are used to handle strings, using prefix syntax:
String literals: single-line and multiline strings
String literals are used to represent and manipulate data as a sequence of characters. For example, string literals can be used to display information, define a constant, etc.
RTFInsert (Function)
Inserts a character string in RTF into the content of an RTF control (found in a window or in a report) or into the content of a character string in RTF.
MatchRegularExpression (Function)
Checks whether a character string matches a specific format and retrieves the different substrings that match the format.
JSONToString (Function)
Converts the content of a JSON variable to a JSON string.
iPrintWord (Function)
Sends the character string passed in parameter to the print buffer.
NoAccent (Function)
Converts accented characters in a string to non-accented characters.
NoRightCharacter (Function)
Returns a string after removing the specified characters from the right side of the initial string.
StringDelete (Function)
Deletes:
  • all the occurrences of a substring within a string.
  • part of a string within another string. The part of the string to remove is identified by its position and length.
StringEndsWith (Function)
Checks whether a character string ends with:
  • with a specific character string.
  • with one of the character strings in an array.
<Type Buffer>Decode (Function)
Decodes a character string that was encoded by Encode.
StringIncrement (Function)
Increments a number at the beginning or at the end of a string.
fInsertTextAtBeginning (Function)
Inserts text at the beginning of a file without overwriting the existing text.
fFind (Function)
Finds a character string or a buffer in a file opened by fOpen.
Decode (Function)
Decodes a character string that was encoded by Encode.
RTFAdd (Function)
Adds a character string (in RTF or not) at the end of RTF edit control, RTF control in a report or character string containing a text in RTF.
Middle (Function)
Extracts:
  • a substring from a string starting at a specified position.
  • part of a buffer starting at a specified position.
Functions for managing Dates and Times (prefix syntax)
List of functions for managing dates and times
Handling strings
WINDEV, WINDEV Mobile and WEBDEV allow you to perform different types of operations on character strings via the WLanguage functions...
UUDecode (Function)
Decodes a character string in UUEncode format.
Hash functions
Hashing is used to summarize a file or a character string...
Encode (Function)
Encodes a character string or a buffer. To decode the result, simply use Decode.
<ANSI string>.CharactTypeCount (Function)
Returns the number of characters matching a given type.
PositionOccurrence (Function)
Finds the Xth position of a string within another string.
Date and Time functions
List of functions for managing dates and times
<Type Buffer>Encode (Function)
Encodes a character string or a buffer. To decode the result, simply use Decode.
Operators on character strings
The character strings can be handled by specific WLanguage functions or by the +, [[ and ]] operators...
Unicode in character strings
The Unicode format is an encoding system that assigns a unique number to each character.
RegexMatch (Function)
Checks whether a string matches the format defined by a regular expression.
Position (Function)
Finds the position of a specified string within another string.
NoLeftCharacter (Function)
Returns a string after removing the specified characters from the left side of the initial string.
Truncate (Function)
Truncates the right part of a string or buffer.
<DiskFile variable>.Find (Function)
Finds a character string or a buffer in a file opened by fOpen.
<Unicode string>.RegexMatch (Function)
Checks whether a string matches the format defined by a regular expression.
ExtractStringBetween (Function)
Allows you to:
  • extract a substring between two given separators from a character string.
  • search for substrings between two given separators in a character string.
NoCharacter (Function)
Returns a string after removing the specified leading and trailing characters.
<ANSI string>.Insert (Function)
Inserts a string into another character string at a given position.
<ANSI string>.RegexMatch (Function)
Checks whether a string matches the format defined by a regular expression.
Multilingual messages: Convert to new format (version 27 and later)
WINDEV, WEBDEV and WINDEV Mobile have included multilingual project support in many previous versions...
StringInsert (Function)
Inserts a string into another character string at a given position.
<JSON variable>.ToString (Function)
Converts the content of a JSON variable to a JSON string.
CommonLength (Function)
Returns the number of common characters between two strings (from the beginning or from the end of the string).
fAddText (Function)
Adds the content of a character string at the end of a file.
String functions
List of functions for managing character strings
UncompleteDir (Function)
Removes the '/' or '\' characters from the end of a string, if necessary....
Buffer (Type de variable)
The buffer type corresponds to a binary memory area....
Charact (Function)
Returns the character corresponding to the specified ASCII code.
Phonetic (Function)
Returns the phonetic transcription of the string passed as parameter.
UnicodeToAnsi (Function)
Converts: a UNICODE string to ANSI (Windows). a buffer containing a UNICODE string to a buffer containing an ANSI string (Windows)....
Parameters of a procedure with a variable number of parameters
When the procedure uses a variable number of parameters, you must be able to handle the different parameters passed to the function in the code of the procedure....
<String type>.AnsiToUnicode (Function)
Converts an ANSI string (Windows) to a UNICODE string.
Asc (Function)
Returns the ASCII code of the specified character.
<ANSI string>.AnsiToOem (Function)
Converts an ANSI string (Windows) to an OEM string (DOS).
OemToAnsi (Function)
Converts an OEM string (DOS) to an ANSI string (Windows).
<Chaîne OEM>.OemVersAnsi (Function)
Converts an OEM string (DOS) to an ANSI string (Windows).
RepeatString (Function)
Concatenates N number of copies of the same specified string or buffer.
AnsiToOem (Function)
Converts an ANSI string (Windows) to an OEM string (DOS).
NoSpace (Function)
Returns a string after removing the spaces: from the left and right side of the initial string. within the string....
<Buffer type>.AnsiToUnicode (Function)
Converts a buffer containing an ANSI string (Windows) to a buffer containing a UNICODE string.
CharactUnicode (Function)
Returns the character corresponding to the specified Unicode code.
CompleteDir (Function)
Adds a backslash to the end of a string, if necessary.
Error 111: The Pascal string %1 is too long
<String type>.Replace (Function)
Replaces all occurrences of a specified substring in a string with another specified substring.
1
4
5
6
7
8
105
>