0

hello everyone,


I am trying to check each letter of a word if that word doesn't contain (AEIOUY) then I have to append (-way) to the end of the word. Now I have this if statement and it doesn't work:


If OriginalWord.ToUpper Like "*[!AEIOUY]*" Then
Label1.Text = OriginalWord & "-way"
End If
any suggestion to make it work. I need to append a (-way) to the end of a word that doesn't have (AEIOUY)


thank you guys

Regards

3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by Unhnd_Exception
0

try OriginalWord.ToUpper Like "*[AEIOUY]*"

The pattern is "anything" followed by "any vowel" followed by "anything". Just leave out the "!"

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.