2个回答
展开全部
窗体上画一个按钮和文本框:
Private Sub Command1_Click()
Text1 = ""
Dim a()
strtxt = InputBox("输入字符串", "Tips")
l = Len(strtxt)
ReDim a(l)
For i = 1 To l
a(i) = Mid(strtxt, i, 1)
Next i
For i = l To 1 Step -1
Text1 = Text1 & a(i)
Next i
End Sub
Private Sub Command1_Click()
Text1 = ""
Dim a()
strtxt = InputBox("输入字符串", "Tips")
l = Len(strtxt)
ReDim a(l)
For i = 1 To l
a(i) = Mid(strtxt, i, 1)
Next i
For i = l To 1 Step -1
Text1 = Text1 & a(i)
Next i
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询