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

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

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

Member Avatar for Unhnd_Exception
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.