Dictionary Object

Results 1 to 2 of 2

Thread: Dictionary Object

  1. #1
    Join Date
    Dec 1969

    Default Dictionary Object

    Can you store a class in the dictionary object? the help says no arrays, would this also include a class or another object?

  2. #2
    Join Date
    Dec 1969

    Default RE: Dictionary Object

    Yup, I have been able to store classes. For example:<BR><BR>Class X<BR>End Class<BR><BR>Dim objDict<BR>Set objDict = Server.CreateObject("Scripting.Dictionary")<BR><BR >Dim objX<BR>Set objX = New X<BR>objDict.Add "blah", objX<BR>Set objX = Nothing<BR><BR>Works just fine. I can later do:<BR><BR>Dim objTemp<BR>Set objTemp = objDict("blah")<BR><BR>Neat, eh?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts