VB中如何将输入的字符串反序显示?
例如输入"ABCDEFG",显示"GFEDCBA"
答案或建议:
1.使用函数方法:
Text1.Text = StrReverse("ASDFGHJKL")
2.使用循环结构的代码:
Dim s As String
Dim a As String
s = "123456789"
For i = Len(s) To 1 Step -1
a = a + Mid(s, i, 1)
Next i
MsgBox a
转载本文请保留:http://www.baikewenda.com/h/1103/a5001.html