Problem with Server.CreateObject("Scripting.Dictionary")... 
Author Message
 Problem with Server.CreateObject("Scripting.Dictionary")...

Hello,

I've got a problem when i try to put a
Server.CreateObject("Scripting.Dictionary") into an application variable
using
Application("toto") = Server.CreateObject("Scripting.Dictionary").

the system says "only... apartment..."

Somebody has a workaround or another dictionary object with "Apartment
threadingModel ?

Thanks,

    Fred



Mon, 14 Jan 2002 03:00:00 GMT  
 Problem with Server.CreateObject("Scripting.Dictionary")...
Hi there,


Quote:
> Hello,

> I've got a problem when i try to put a
> Server.CreateObject("Scripting.Dictionary") into an application variable
> using
> Application("toto") = Server.CreateObject("Scripting.Dictionary").

Have a look at this old post from Eric:

http://www.deja.com/[ST_rn=ps]/getdoc.xp?AN=437754245&fmt=text

As far as I'm aware, the string table mentioned by Eric doesn't exist, but
I'll check it for you and post back if it does exist. For small amounts of
data, you are probably best off just using different values stored in the
Application object. Try this link (all one URL):

http://www.deja.com/[ST_rn=ps]/qs.xp?ST=PS&QRY=dictionary+apartment&defaultO
p=AND&DBS=1&OP=dnquery.xp&LNG=ALL&subjects=&groups=microsoft.public.scriptin
g.*&authors=eric&fromdate=&todate=&showsort=score&maxhits=25

for three articles by Eric on this.

Peter

--

Microsoft Windows Script Program Manager.
http://msdn.microsoft.com/scripting



Mon, 14 Jan 2002 03:00:00 GMT  
 Problem with Server.CreateObject("Scripting.Dictionary")...
Hey all,

Quote:
> As far as I'm aware, the string table mentioned by Eric doesn't exist, but
> I'll check it for you and post back if it does exist.

It does. You can find info on the LookupTable component here:

http://msdn.microsoft.com/workshop/management/planning/msdnchronicles...

Peter

--

Microsoft Windows Script Program Manager.
http://msdn.microsoft.com/scripting



Mon, 14 Jan 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. CreateObject("Scripting.Dictionary")

2. CreateObject("Excel","//server"), MsgBox output

3. Set fso = Server.CreateObject("Scripting.FileSystemObject")

4. Server.CreateObject("Scripting.FileSystemObject")

5. Problem: CreateObject ("scripting.FileSystemObject") under WSH

6. Problem with CreateObject("Scripting.FileSystemObject")

7. Problem: CreateObject ("scripting.FileSystemObject") under WSH

8. error in Server.CreateObject("ASPExec.Execute")

9. CreateObject("Excel.Application") problem

10. Set filesys = CreateObject("Scripting.FileSystemObject")

11. CreateObject("Scripting.FileSystemObject") Error

12. ** ? concerning CreateObject("Scripting.FileSystemObject")

 

 
Powered by phpBB® Forum Software