当前位置: 首页 > 文档资料 > VBA 中文教程 >

StrReverse

优质
小牛编辑
119浏览
2023-12-01

StrReverse函数反转指定的字符串。

语法 (Syntax)

StrReverse(string) 

例子 (Example)

添加按钮并添加以下功能。

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