首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

怎样逆序输出字符串?解决方法

2012-02-03 
怎样逆序输出字符串?如题,逆序输出一个字符串..[解决办法]Dim i As Integer, strA As String, strB As Str

怎样逆序输出字符串?
如题,逆序输出一个字符串..

[解决办法]
Dim i As Integer, strA As String, strB As String
strA = "abcdef "
For i = Len(strA) To 1 Step -1
strB = strB & Mid(strA, i, 1)
Next i
MsgBox strB

热点排行