StrReverse
函數反轉指定的字串。
語法
StrReverse(string)
示例
添加一個模組,並將下麵的代碼放在編輯器中。
Private Sub Constant_demo_Click()
msgbox("Line 1 : " & StrReverse("VBSCRIPT"))
msgbox("Line 2 : " & StrReverse("My First VBScript"))
msgbox("Line 3 : " & StrReverse("123.45"))
End Sub
執行上面示例代碼,得到以下結果 -
Line 1 : TPIRCSBV
Line 2 : tpircSBV tsriF yM
Line 3 : 54.321