VB讲输入的字符串以反序显示怎么做?
3个回答
展开全部
Private Sub Form_Click()
word = "abcde"
Print "输入的字符串是:" & word
jieguo = StrReverse(word)
Print "反序结果:" & jieguo
End Sub
word = "abcde"
Print "输入的字符串是:" & word
jieguo = StrReverse(word)
Print "反序结果:" & jieguo
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Command1_Click()
Dim s As String
Dim t As String
s = InputBox("输入一个字符串")
Print s
Dim i As Integer
For i = Len(s) To 1 Step -1
t = t & Mid(s, i, 1)
Next i
Print t
End Sub
Dim s As String
Dim t As String
s = InputBox("输入一个字符串")
Print s
Dim i As Integer
For i = Len(s) To 1 Step -1
t = t & Mid(s, i, 1)
Next i
Print t
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
StrReverse(string1)用这个函数就搞定了
MyStr = StrReverse("VBScript")
MyStr = "tpircSBV"
MyStr = StrReverse("VBScript")
MyStr = "tpircSBV"
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询