Application object

xiaoxiao2021-03-06  112

Application object is used to store, read all users shared application information collection (Collection) Contents contains all variables (data and objects) in the Applicaiton objects that do not use tags (data and objects) containing tag Declare a collection method of all variables (data and objects) stored in Application objects ("Variable Name) Remove the specified variable from the Application.contents collection of Contents.removeAll () Set Application.Contents Collection All variables delete Lock prevents other users from accessing the Applicaiton Object Collection UNLOCK Unparalleled Other Users Accessing Applicaiton Object Collection Prevent ONSTART ONSTART When the first user browses the ASP page, activate Oneend When the last user's session is over and Activate all the code has been activated after the code has been executed, or the last user access server is still activated when there is still no one to access the server after a period of time (typically 20 minutes).

If there is a value as follows: Application ("a") = "a"

Application ("b") = "b"

Application ("c") = "c"

There is a contents collection:

Application.contents (1) = "a" Application.contents (2) = "B" Application.contents (3) = "c" can also be written as Application.contents ("a") = "a" .... ................................................ ................................................ ........................

转载请注明原文地址:https://www.9cbs.com/read-105181.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.043, SQL: 9