hi...plz can you help men in my code... i want to reverse all words in the string....not just the string backward for example if the input is (the cat) i want the out put (eht tac) and not (tac eht) and this is my code
Private Sub btnB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnB.Click Dim st As String = " " Dim I As Integer Dim x As String Dim n As Integer Dim r As String Dim w As String
x = Trim(txtB.Text) n = InStr(x, " ")
r = Mid(x, 1, 1) Do
For I = n To 1 Step -1
st = st & Mid(x, I, 1)
Next txtA.Text = st w = w + 1 Loop While (r = " ")