Previous PageNext Page

6.5.4 StaticObjects Collection

The StaticObjects collection contains all the objects created in Global.asa with the <OBJECT> tag and given session scope. The collection can be used to retrieve the value of a specific item, or you can use an iterator to retrieve all the items in the collection.
 

Syntax

Session.StaticObjects( key )

Parameters

key
The item to retrieve.

Remarks

You can use an iterating control structure to loop through the keys of the StaticObjects collection. This is demonstrated in the following example.
 

<%

Dim objprop

For Each objprop in Session.StaticObjects

Response.write(objproperty & " : " & Session.StaticObjects(objprop) & "<BR>")

Next

%>


Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page