vb. 把一个字符串用for倒序输出? 怎么做不会vb帮别人问下!

大哥大姐,请教一下,vb. 把一个字符串用for倒序输出? 怎么做不会vb帮别人问下!
最新回答
玥天竺灭仄

2024-11-27 07:20:26

可能是这个样子的了 Dim s, i, j s = "1234567890" For i = len(s) To 1 step -1 j = j & Mid(s, i, 1) Next msgbox j 测试下
惹我细心溺屎身亡

2024-11-27 06:14:31

Dim s, i, j s = "1234567890" For i = 1 To Len(s) j = j & Mid(s, i, 1) Next msgbox j
好多余

2024-11-27 06:51:43

Private Sub Command1_Click()

Me.Cls

Dim t As String, s As String, j As Long

t = "ABCD你好吗"

For j = 1 To Len(t)

s = Mid(t, j, 1) & s

Next

Print t

Print s

End Sub