Im trying to work out how to do a project called pig latin in vb.net 2003... so far I've gotten it to work for a single word. If there are spaces it still acts like there is only one word with the rules (ex: monkey stuff = onkey stuffmay) I know that i have to figure a way to seperate the string up if there is a space and do the rules for pig latin for each word and then make it show up in a message box but I'm stuck... as soon as i can get it to split I have to calculate the number of words starting with a variable and percent of said words and so on which shouldnt be hard with an If Then statement if i can figure out the first part. Any help is appreciated

6 Years
Discussion Span
Last Post by apegram
Dim input As String = "this is a sentence"
Dim words() As String = input.Split(" "c)

For Each word As String In words
   ' do something here
This question has already been answered. 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.