PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • NoAccent 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
Transforms the accented characters found in a character string into non-accented characters.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
NoAccent("élan")    // Returns "elan"
NoAccent("fiancée")   // Returns "fiancee"
NoAccent("")          // Returns ""
Syntax
<Result> = NoAccent(<Initial string>)
<Result>: Character string
Character string in which all the accented characters have been replaced by non-accented characters.
<Initial string>: Character string (with quotes)
Initial character string.
Remarks

NoAccent 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.
Component : wd250vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Exemplo Sem Acento
SAI_endereco_local_cliente_copias = remove_acento(SAI_endereco_local_cliente_copias)

//------

PROCEDURE remove_acento(texto)
texto = NoAccent(texto)

texto = Replace(texto,"xE1","a")
texto = Replace(texto,"xE3","a")
texto = Replace(texto,"xEA","e")
texto = Replace(texto,"xE9","e")
.
.
texto=Replace(texto,"Ü","U")
RESULT(texto)

//No blog fiz um exemplo com video sobre sem acento
// No blog tem a rotina completa sem acento

http://windevdesenvolvimento.blogspot.com.br/2016/01/windev21-curso-223-remover-acentos.html
De matos AMARILDO
13 Jan. 2016
Exemplo NoAccent
cidade is string=Upper(NoAccent(_NOME_CIDADE))
cidade is string=Upper(NoAccent("novo hamburgo"))

// Blog Com Video
http://windevdesenvolvimento.blogspot.com.br/2016/01/windev21-curso-218-upper-maisculo.html
De matos AMARILDO
09 Jan. 2016