I have a windows forms application with a button on it.
When I press it it appears me a input box I type RAC and I want that it displays me in a message box (with MsgBox) the reverse of the string in this case: CAR.
Here's the code tried in my button:
In the input box I type RAC and want it to display me when I press ok button the reverse of that string CAR.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' declaratii variabile
Dim textOriginal As String
Dim textFinal As String
'StrReverse - inverseaza un sir de caractere
textOriginal = InputBox("RAC")
If (Len(textOriginal) = 0) Then
textFinal = StrReverse(textOriginal)
MsgBox("Inversul este" & textFinal)
End If

New Topic/Question
Reply




MultiQuote



|