Scripting Dictionary .Add Method Fails

Hey there,

I am using the Scripting Dictionary object to pass a Key with another object and it fails.

This one works fine:

Dim myObject : Set myObject = Server.CreateObject("Scripting.Dictionary")

myObject.Add"Time","October 5th, 2006"

This one fails:

Dim objFileInfo : Set objFileInfo = New CurrentDate

Dim myObject : Set myObject = Server.CreateObject("Scripting.Dictionary")

myObject.Add"Time", objFileInfo

I am trying to pass the object objFileInfo through the dictionary object and it fails everytime.

This works on Microsoft IIS.

As a sites say, anything can be passed except arrays.

http://ns7.webmasters.com/caspdoc/html/vbscript_dictionary_object_add_method.ht m

Any help or work arounds would be greatly appreciated.

[939 byte] By [Da_Ruler] at [2007-11-26 10:35:51]
# 1

I found the answer, even though it wasn't one I wanted to find.

http://swforum.sun.com/jive/thread.jspa?threadID=57856&tstart=45

Microsoft's IIS has some extra functionality that allows the Scripting Dictionary to pass objects while Sun ASP does not.

What a shame.

No points awarded.

Da_Ruler at 2007-7-7 2:46:46 > top of Java-index,Web & Directory Servers,Web Servers...