Ok so I got a small code on trying to convert english into Pig Latin, I got the vowels working but the consonants are more difficult, based on what i have i can only remove the first consonant, So the word "what" is translated into "hatway" instead of "atwhway" please help, I'm still new to VB this is what i have
Public Const Vowels As String = "aeiou"
Public Const Consonant As String = "bcdfghjklmnpqrstvwxyz"
Private Const ConsonantSuffix As String = "ay"
For consonantIndex As Integer = 0 To Consonant.Length - 1 Step 1
If word.ToLower.StartsWith(Consonant(consonantIndex).ToString) Then
word = word.Remove(0, 1)
word = word & Consonant(consonantIndex) & ConsonantSuffix
End If
Next