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

Tags: , , ,

ASP.NET

Comments (11) -

Rackmount computer India
6/22/2011 2:39:27 AM #

I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your entries very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well!

Funny Quotes United States
7/16/2011 11:15:18 AM #

Nice post. I learn one thing tougher on different blogs everyday. It can always be stimulating to learn content from other writers and observe a little one thing from their store. I’d choose to use some with the content on my blog whether or not you don’t mind. Natually I’ll provide you with a link on your internet blog. Thanks for sharing.

web development India
7/21/2011 2:56:01 AM #

Great service but let's see how it will work and how many people will use it.

home energy monitor United States
8/22/2011 7:19:48 AM #

Attractive section of content. I just stumbled upon your blog and in accession capital to assert that I get in fact enjoyed account your blog posts. Anyway I’ll be subscribing to your augment and even I achievement you access consistently fast.

website development company India
8/30/2011 6:46:44 AM #

Forever advice taken to heart. I truly take account the time you’ve taken to share your thoughts. It is a outstanding assistance, thanks so much! .

Phone Systems United States
9/12/2011 12:32:42 PM #

I m happy to visit your blog. I got lots of information the which i search. Thanks a lot.

website development company India
11/8/2011 7:30:19 AM #

You got a really useful blog I have been here reading for about an hour. I am a newbie and your success is very much an inspiration for me.

Carpet Cleaning nyc United States
11/11/2011 9:04:35 AM #

Nice post.I simply stumbled upon your blog and in accession capital to claim that i purchase really enjoyed account your blog posts. Anyway I’ll be subscribing to your augment and even I achievement you access consistently quick.

Joomla developer United States
12/9/2011 10:06:54 AM #

Nice Thanks for posting for us. I would like to have more updates on this.

Cheap wedding dresses United States
12/15/2011 12:44:25 AM #

Very happy to see your article, I very much to like and agree with your point of view. Thank you for sharing. At the same time,i love best pram very much .Welcome to look at my website and blog articles.Hope we can become good friends, and exchange and to help each other! Thanks!!

ExamSheets United Kingdom
1/28/2012 9:38:30 AM #

I just stumbled upon your blog and in accession capital to assert that I get in fact enjoyed account your blog posts.  Great blog post. Keep it up with same passion.

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading


Sobre Mim

Felipe Augusto Silva Lambert - Analista de Sistemas, experiência em 4 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.

Widget Month List not found.

Unknown server tag 'blog:MonthList'.X