"Arpan" <> wrote in message
news: ups.com...
> The following code exists in a Global.asa file:
>
> ----------------------------------------------
> <%
> Set Application("Thing")=Server.CreateObject("THINGDOE R.THINGY")
> %>
> ----------------------------------------------
>
> Will the above code snippet
>
>
> create a non-object Application variable named "Thing" & place it in
> the Contents collection of the Application object?
>
> -----OR------
>
> create an Application object named "Thing" & place it in the
> StaticObjects collection of the Application object?
>
> Thanks,
>
> Arpan
>
It will create an application variable and set it to an object. This is not
considered wise unless the object is designed specifically for a
multi-threaded environment.
If you want the object in the staticobjects collection you will need to use
an <object> tag in global.asa to create it (again, make sure it is designed
for this)>
<object id="thing" progid="THINGDOER.THINGY" runat="Server"
scope="Application"></object>
--
Mark Schupp
|