Is a dictionary garbage collected automatically?

S

Sam Sungshik Kong

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("scripting.dictionary")
End Function

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

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

TIA.

Sam
 
S

Sam Sungshik Kong

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top