translation

Dieris

Newcomer
Joined
Nov 12, 2003
Messages
1
I need to write a proggy that will translate a series of words in a text box to german. now, i can translate the word when i get it but i need to isolate the word first and count it (to use a "For" loop), and i cant do that.

Any help would be great.....

:)
 
to change every instance of a word within the textbox , you can use " Replace " , eg:
Visual Basic:
TextBox1.Text = TextBox1.Text.Replace("Morning", "Morgen")
to get a count of the amount of times the word appears in your textbox ....
Visual Basic:
Dim x As Integer = TextBox1.Text.Split("Morning").GetUpperBound(0)
MessageBox.Show(x)
 
Back
Top