Hi there,
I've written a Dll using VB, which accesses an application object created in global.asa with <OBJECT> tag.
<OBJECT RUNAT=Server
SCOPE=Application
ID=Users
PROGID="Scripting.Dictionary">
</OBJECT>
I add elements to the 'User' object using the staticobjects collection of the application object. The function for adding is as follows:
Function addUser(user)
user.id = "ID" & CLng(Timer * 1000)
user.name=name
' add user to Application object 'Users'
objApplication.StaticObjects.Item("Users"
.Add user.id, user.name
' return user with updated information
Set addUser = user
End Function ' // > Function addUser
But actually it doesn't refer to the Application Object 'Users'. I added a few elements to the Users object in my Dll. I was expecting the Users object to contain those values but when I tried to count the no. of elements in the Users object from my ASP script, I came to know that the data was actually not added and the User object had no elements added to it.
Can anybody tell me what's wrong with my code.
Thanx,
Sweta
I've written a Dll using VB, which accesses an application object created in global.asa with <OBJECT> tag.
<OBJECT RUNAT=Server
SCOPE=Application
ID=Users
PROGID="Scripting.Dictionary">
</OBJECT>
I add elements to the 'User' object using the staticobjects collection of the application object. The function for adding is as follows:
Function addUser(user)
user.id = "ID" & CLng(Timer * 1000)
user.name=name
' add user to Application object 'Users'
objApplication.StaticObjects.Item("Users"
' return user with updated information
Set addUser = user
End Function ' // > Function addUser
But actually it doesn't refer to the Application Object 'Users'. I added a few elements to the Users object in my Dll. I was expecting the Users object to contain those values but when I tried to count the no. of elements in the Users object from my ASP script, I came to know that the data was actually not added and the User object had no elements added to it.
Can anybody tell me what's wrong with my code.
Thanx,
Sweta