Vbscript-strreverse-function

提供:Dev Guides
移動先:案内検索

VBScript StrReverse関数

StrReverse

StrReverse関数は、指定された文字列を反転します。

構文

StrReverse(string)

<!DOCTYPE html>
<html>
   <body>
      <script language = "vbscript" type = "text/vbscript">
         document.write("Line 1 : " & StrReverse("VBSCRIPT") & "<br/>")
         document.write("Line 2 : " & StrReverse("My First VBScript") & "<br/>")
         document.write("Line 3 : " & StrReverse("123.45") & "<br/>")

      </script>
   </body>
</html>

lとして保存してInternet Explorerで実行すると、上記のスクリプトは次の結果を生成します-

Line 1 : TPIRCSBV
Line 2 : tpircSBV tsriF yM
Line 3 : 54.321