VBS教程:函數(shù)-StrReverse 函數(shù)
更新時間:2006年11月16日 00:00:00 作者:
StrReverse 函數(shù)
返回字符串,此字符串與指定字符串順序相反。
StrReverse(string1)
string1 參數(shù)是要進行字符反向的字符串。如果 string1 是零長度字符串 (""),則返回零長度字符串。如果 string1 為 Null,則會出現(xiàn)錯誤。
說明
下面的示例利用 StrReverse 函數(shù)返回按相反順序排列的字符串:
Dim MyStrMyStr = StrReverse("VBScript") 'MyStr包含"tpircSBV"。

