Contents

アプリケーションレベルの変数・オブジェクト保持


文法
Application.Contents(Key)


パラメータ
Key : 変数名/インデックス


機能説明
アプリケーションレベルの変数・オブジェクト保持


使用例
<% 'アプリケーション変数に値をセット Application.Contents.Item("UserID") = "testID" 'アプリケーション変数「UserID」の値を表示 '出力される内容は全て同じです Response.Write "アプリケーション変数 表示例1 : " & Application.Contents(1) & "<br>" & vbCrLf Response.Write "アプリケーション変数 表示例2 : " & Application("UserID") & "<br>" & vbCrLf Response.Write "アプリケーション変数 表示例3 : " & Application.Contents("UserID") & "<br>" & vbCrLf Response.Write "アプリケーション変数 表示例4 : " & Application.Contents.Item("UserID") & "<br>" & vbCrLf %>
Topへ