Is a dictionary garbage collected automatically?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sam Sungshik Kong

    Is a dictionary garbage collected automatically?

    Hello!

    I'm trying to use a dictionary.
    I know how to create it.
    Do I have to destruct it by myself?
    For short-hand, I made a function to create it and didn't do anything for
    destruction.

    Function dict
    Set dict = createobject("s cripting.dictio nary")
    End Function

    Set di = dict()
    'use di
    'now what?

    Also, is there any difference between createobject and server.createob ject
    when I create a dictionary?

    TIA.

    Sam


  • Sam Sungshik Kong

    #2
    Re: Is a dictionary garbage collected automatically?

    One more question.

    When I retrieve items from a dictionary in a For Each statement, they come
    out in an order that I added?
    My test shows positive but I am not sure.

    Sam

    "Sam Sungshik Kong" <ssk@chol.nospa m.net> wrote in message
    news:ucLcJq0mEH A.3396@tk2msftn gp13.phx.gbl...[color=blue]
    > Hello!
    >
    > I'm trying to use a dictionary.
    > I know how to create it.
    > Do I have to destruct it by myself?
    > For short-hand, I made a function to create it and didn't do anything for
    > destruction.
    >
    > Function dict
    > Set dict = createobject("s cripting.dictio nary")
    > End Function
    >
    > Set di = dict()
    > 'use di
    > 'now what?
    >
    > Also, is there any difference between createobject and server.createob ject
    > when I create a dictionary?
    >
    > TIA.
    >
    > Sam
    >
    >[/color]


    Comment

    Working...