Removing vowels

  • Thread starter Thread starter Jared
  • Start date Start date
J

Jared

Hi,

How come the folling code doesn't work? Straight from MSDN.
Dim Vowels As String = "AEIOU"

Return xText.Trim(Vowels.ToCharArray)
 
Jared said:
How come the folling code doesn't work? Straight from MSDN.
Dim Vowels As String = "AEIOU"

Return xText.Trim(Vowels.ToCharArray)

'Trim' will only remove occurances of the characters at the start and end of
the string.
 
Jared,

I believe it works as advertized, just your expectation are different.
What do you expect the end result will be?
 
Back
Top