We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,473 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Splitting a string up to be used individually

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

2
Contributors
1
Reply
1 Hour
Discussion Span
3 Years Ago
Last Updated
2
Views
Question
Answered
SubatomicRhythm
Newbie Poster
1 post since Apr 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
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
Next
apegram
LINQ!
Team Colleague
552 posts since Jan 2010
Reputation Points: 327
Solved Threads: 135
Skill Endorsements: 7
Question Answered as of 3 Years Ago by apegram

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0750 seconds using 2.73MB