ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / String functions
  • NoCharacter and UNICODE
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns a string after removing the specified characters:
  • from the left and right side of the initial string.
Example
MyString is string
MyString = NoCharacter("<Text>", "<>") 
// MyString contains "Text"
NoCharacter("Abracadabra", "a", sscInside)   // Returns "Abrcdbra"
NoCharacter("Abracadabra", "a", sscAll)   // Returns "brcdbr"
Syntax
<Result> = NoCharacter(<Initial string> , <Characters to remove> [, <Position>])
<Result>: Character string
Character string without the specified characters on the left and right side of the initial string.
<Initial string>: Character string
Initial character string.
<Characters to remove>: Character string
List of characters to be deleted from the initial string.
If this parameter corresponds to an empty string (""), <Result> will correspond to the initial string.
<Position>: Optional Integer constant
Position of the characters to remove. This position can correspond to one of the following constants:
sscAllRemoves all the specified characters from the initial string.
Equivalent to sscRight + sscLeft + sscInside.
sscInsideRemoves the specified characters within the initial string.
sscLeftRemoves the specified characters from the left side of the initial string.
sscOutside
(Default value)
Removes the specified characters from both sides of the initial string.
Equivalent to sscRight + sscLeft.
sscRightRemoves the specified characters from the right side of the initial string.
AndroidAndroid Widget This parameter is not available.
Remarks

NoCharacter and UNICODE

If the string passed as a parameter is an ANSI string, the result will be an ANSI string.
If the string passed in parameter is in Unicode format, the result will be in Unicode format.
Note If the result of the NoCharacter function used on an ANSI string is assigned to a Unicode string (and vice versa), ANSI/Unicode conversion will be implicitly performed.
For more details, see Unicode management.
Business / UI classification: Neutral code
Component: wd300vm.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
NoCharacter - Exemplo
Exemplo de uma função que limpa a formatação em um CPF/CNPJ

PROCEDURE LimparCNPJ(sValor is string)

RETURN NoCharacter(sValor, ".-/")
Jadiel Sousa
14 Feb. 2025

Last update: 10/16/2024

Send a report | Local help