PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • NoCharacter and UNICODE
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
Returns a string after removing the specified characters:
  • from the left and right side of the initial string.
  • Versions 20 and later
    WINDEVWEBDEV - Server codeUniversal Windows 10 AppWindows Mobile within the initial string.
    New in version 20
    WINDEVWEBDEV - Server codeUniversal Windows 10 AppWindows Mobile within the initial string.
    WINDEVWEBDEV - Server codeUniversal Windows 10 AppWindows Mobile within the initial string.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
Universal Windows 10 App This function is now available for Windows Phone applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
Universal Windows 10 App This function is now available for Windows Phone applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Universal Windows 10 App This function is now available for Windows Phone applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
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
Android Widget This function is now available in Android Widget mode.
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.
Android Widget This function is now available in Android Widget mode.
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 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.
Versions 25 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 25
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
Example
MyString is string
MyString = NoCharacter("<Text>", "<>")
// MyString contains "Text"
Versions 20 and later
NoCharacter("Abracadabra", "a", sscInside)   // Returns "Abrcdbra"
NoCharacter("Abracadabra", "a", sscAll)   // Returns "brcdbr"
New in version 20
NoCharacter("Abracadabra", "a", sscInside)   // Returns "Abrcdbra"
NoCharacter("Abracadabra", "a", sscAll)   // Returns "brcdbr"
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 (with quotes)
Initial character string.
<Characters to remove>: Character string (with quotes)
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
Versions 20 and later
Position of the characters to remove. This position can correspond to one of the following constants:
sscRightRemoves the specified characters from the right side of 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.
sscInsideRemoves the specified characters within the initial string.
sscAllRemoves all the specified characters from the initial string.
Equivalent to sscRight + sscLeft + sscInside.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This parameter is not available.
New in version 20
Position of the characters to remove. This position can correspond to one of the following constants:
sscRightRemoves the specified characters from the right side of 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.
sscInsideRemoves the specified characters within the initial string.
sscAllRemoves all the specified characters from the initial string.
Equivalent to sscRight + sscLeft + sscInside.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This parameter is not available.
Position of the characters to remove. This position can correspond to one of the following constants:
sscRightRemoves the specified characters from the right side of 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.
sscInsideRemoves the specified characters within the initial string.
sscAllRemoves all the specified characters from the initial string.
Equivalent to sscRight + sscLeft + sscInside.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP 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 as a parameter is a UNICODE string, the result will be a UNICODE string.
Remark: If the result of NoCharacter on an ANSI string is assigned to a UNICODE string (and vice versa), the conversion will be implicitly performed.
For more details, see Managing UNICODE.
Business / UI classification : Neutral code
Component : wd260vm.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Exemplo NoCharacter
// Vou mostrar como tirar caracter

SAI_Texto="<nome>Amarildo de Matos</nome>"

SAI_Resultado = NoCharacter(SAI_Texto, "<nome>")

SAI_Resultado = NoCharacter(SAI_Resultado, "</nome>")

// Antes = <nome>Amarildo de Matos</nome>
// Resultado = Amarildo de Matos

//Blog com Video e Exemplo

http://windevdesenvolvimento.blogspot.com.br/2017/01/aula-1049-string-034-nocharacter.html

https://www.youtube.com/watch?v=pkCN0CGTfpg

De matos
27 Jan. 2017