Dim tempstr As String
Dim str As String
If Text1.Text = "" Then
MsgBox ("pleale input a string in the text")
End If
str = Text1.Text
tempstr = StrReverse(str)
Text2.Text = tempstr
End Sub
Private Sub Form_DblClick()
Dim x As Integer, a(1 To 4) As String
a(1) = "r": a(2) = "o": a(3) = "s": a(4) = "e"
For x = 1 To 4
Label1.Caption = Label1.Caption + a(x)
Next x
For x = 4 To 1 Step -1
Label2.Caption = Label2.Caption + a(x)
Next x