Remover Acentos

by Felipe Lambert 18. September 2009 13:17

Função simples para remover o acento

Function removeAcentos(ByVal texto As String) As String
   Dim vPos As Byte
   'Constantes de caracteres para remover o acento
   Const vComAcento = "ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖÙÚÛÜàáâãäåçèéêëìíîïòóôõöùúûü"
   Const vSemAcento = "AAAAAACEEEEIIIIOOOOOUUUUaaaaaaceeeeiiiiooooouuuu"

   'Varre o texto para identificar os caracterres
   For i = 1 To Len(texto)
      vPos = InStr(1, vComAcento, Mid(texto, i, 1))   'identifica a posição do caractere a ser subistituido caso exista
      If vPos > 0 Then
         Mid(texto, i, 1) = Mid(vSemAcento, vPos, 1)   'substitui o caractere
      End If
   Next
   removeAcentos = texto 'retorna o item
End Function

Comments

6/6/2010 1:51:47 PM #

very Interesting stuff

Recent issue today United States

6/6/2010 1:54:12 PM #

very Interesting stuff

Recent issue today United States

6/7/2010 6:44:04 AM #

thanks for the great info!

Chail Resorts United States

6/7/2010 6:44:16 AM #

thanks for the great info!

Chail Resorts United States

6/7/2010 6:44:25 AM #

thanks for the great info!

Chail Resorts United States

6/8/2010 8:04:57 AM #

Guia simples para remover Rogueware Rogueware também é conhecido como software de segurança invasor

Telephone Systems United States

6/8/2010 8:05:08 AM #

Guia simples para remover Rogueware Rogueware também é conhecido como software de segurança invasor

Telephone Systems United States

6/8/2010 8:06:24 AM #

This tool will remove languages from rofs2. Just follow 3 simples steps and all Resource Language

Telephone Systems United States

6/8/2010 8:06:39 AM #

This tool will remove languages from rofs2. Just follow 3 simples steps and all Resource Language

Telephone Systems United States

6/8/2010 8:07:19 AM #

This tool will remove languages from rofs2. Just follow 3 simples steps and all Resource Language

Telephone Systems United States

6/8/2010 8:07:50 AM #

This tool will remove languages from rofs2. Just follow 3 simples steps and all Resource Language

Telephone Systems United States

6/17/2010 7:33:55 AM #

I dont often read blogs or even comment on blogs but I did find your pretty intresting toread through, Do you mind if I ask what template you are using for this blog, Im guessing its a wordpress blog?

luxury gifts United States

6/17/2010 9:00:21 AM #

It had been during this era that the nickname Wildcats was initial attached to the university.

free online games United States

6/23/2010 3:48:51 AM #

Sounds great yar...Thanks for sharing this info...Smile

Tech News India

6/23/2010 3:49:13 AM #

Sounds great yar...Thanks for sharing this info...Smile

Tech News India

6/29/2010 4:58:10 AM #

Great blog! keep up the good work.

Fighting Games United States

6/29/2010 4:58:33 AM #

Great blog! keep up the good work.

Fighting Games United States

7/2/2010 7:46:37 AM #

your articles in the blog are always very nice ... keep updating such articles.

tandartsenbarendrecht United States

7/18/2010 5:27:38 AM #

It had been during this era that the nickname Wildcats

pediatric physical therapy seminars United States

7/18/2010 5:28:08 AM #

It had been during this era that the nickname Wildcats

pediatric physical therapy seminars United States

7/20/2010 1:57:04 AM #

Certainly, these practices are unfair; but they say that most of their rules are only to apply to people who overdraw.

viagra blog United States

7/26/2010 3:00:26 PM #

Appreciate the blog.  I've been building solar panels for small businesses for some time now and doing pretty well... Greatful I found this place.

nba replica jerseys United States

8/3/2010 2:48:30 PM #

Just wanted to give you a shout from the valley of the sun, great information. Much appreciated.

offensive t shirts United States

8/19/2010 8:49:29 AM #

Just follow 3 simples steps and all Resource Language

Dubai apartments United States

8/19/2010 8:49:41 AM #

Just follow 3 simples steps and all Resource Language

Dubai apartments United States

8/19/2010 8:50:09 AM #

Just follow 3 simples steps and all Resource Language

Dubai apartments India

8/19/2010 8:50:43 AM #

Just follow 3 simples steps and all Resource Language ,but they say that most of their rules are only to apply to people who overdraw.

Dubai apartments India

9/1/2010 5:13:17 AM #

nice post " thanks

Bestech Ananda United States

9/1/2010 5:13:35 AM #

nice post " thanks

Bestech Ananda United States

9/1/2010 5:13:55 AM #

nice post " thanks

Bestech Ananda United States

9/1/2010 5:14:15 AM #

nice post " thanks

Bestech Ananda United States

9/1/2010 5:14:31 AM #

nice post " thanks

Bestech Ananda United States

9/1/2010 5:14:47 AM #

nice post " thanks

Bestech Ananda United States

9/1/2010 9:08:54 AM #

This blog looks really good. Thanks for providing all this information for free. Now I know which of my cousins was right about an issue similar to this!

ogon wallet  United States

9/1/2010 2:41:48 PM #

My experience has shown me that the people who are exceptionally good in business aren't so because of what they know but because of their insatiable need to know more.

ceo central United States

9/1/2010 3:34:02 PM #

I think unemployed turning into new internet business owners is very good news.

FLTT.OCB United States

9/3/2010 1:51:11 PM #

Yes there are a lot of unemployed who will try any thing to make some money to pay bills but you have to be careful because not to get caught up in SCAMS.

supply chain logistics United States

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



Sobre Mim

Felipe Augusto Silva Lambert - Analista de Sistemas, experiência em 3 anos desenvolvimento ASP.NET, utilizando tecnologias ServerSide (Design Patterns, Linq, WCF, SQL Server, C# e VB.NET) e ClientSide (JavaScript e Jquery). técnico em Mecatrônica e bacharel em Ciência da Computação.