PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • NoCharacter function 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 character string without the specified characters:
  • found on the left and on the right of the initial string.
  • Versions 20 and later
    WINDEVWEBDEV - Server codeWindows MobileUniversal Windows 10 App found inside the initial string.
    New in version 20
    WINDEVWEBDEV - Server codeWindows MobileUniversal Windows 10 App found inside the initial string.
    WINDEVWEBDEV - Server codeWindows MobileUniversal Windows 10 App found inside the initial string.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available for the 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.
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 Delete> [, <Position>]]])
<Result>: Character string
Character string without the specified characters found on the left and on the right of the initial string.
<Initial String>: Character string (with quotes)
Initial character string.
<Characters to Delete>: Character string (with quotes)
List of characters that must be deleted from the initial string.
If this parameter corresponds to an empty string (""), <Result> will correspond to the initial string.
<Position>: Integer constant
Versions 20 and later
Position of the characters to delete. This position can correspond to one of the following constants:
sscRightDeletes the specified characters found on the right of the initial string.
sscLeftDeletes the specified characters found on the left of the initial string.
sscOutside
(Default value)
Deletes the specified characters found outside the initial string.
Equivalent to sscRight + sscLeft.
sscInsideDeletes the specified characters found inside the initial string.
sscAllDeletes the specified characters found in 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 delete. This position can correspond to one of the following constants:
sscRightDeletes the specified characters found on the right of the initial string.
sscLeftDeletes the specified characters found on the left of the initial string.
sscOutside
(Default value)
Deletes the specified characters found outside the initial string.
Equivalent to sscRight + sscLeft.
sscInsideDeletes the specified characters found inside the initial string.
sscAllDeletes the specified characters found in the initial string.
Equivalent to sscRight + sscLeft + sscInside.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This parameter is not available.
Position of the characters to delete. This position can correspond to one of the following constants:
sscRightDeletes the specified characters found on the right of the initial string.
sscLeftDeletes the specified characters found on the left of the initial string.
sscOutside
(Default value)
Deletes the specified characters found outside the initial string.
Equivalent to sscRight + sscLeft.
sscInsideDeletes the specified characters found inside the initial string.
sscAllDeletes the specified characters found in the initial string.
Equivalent to sscRight + sscLeft + sscInside.
AndroidAndroid Widget Universal Windows 10 AppJavaPHP This parameter is not available.
Remarks

NoCharacter function and UNICODE

If the string passed in parameter is in ANSI format, the result will be in ANSI format.
If the string passed in parameter is in UNICODE format, the result will be in UNICODE format.
Note: If the result on an ANSI string is assigned to a UNICODE string (and conversely), the conversion will be implicitly performed.
See Managing the UNICODE format for more details.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • 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
Jan. 27 2017