Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Dictionary Object

Reply
 
Old 09-21-2009   #1 (permalink)
theNugget2009


 
 

Dictionary Object

Hi

I currently have a vbscript running that uses a Dictionary Object, on one
machine I get an error that it does not like the object and it skips it, is
there different versions of vbscript on client machines?

Regards

D


My System SpecsSystem Spec
Old 09-21-2009   #2 (permalink)
Tim Williams


 
 

Re: Dictionary Object

What's the *actual* error ?

Tim

"theNugget2009" <davidmcnaughton_1999@newsgroup> wrote in message
news:65067BCE-4978-45B8-94BA-874D6D683C23@newsgroup
Quote:

> Hi
>
> I currently have a vbscript running that uses a Dictionary Object, on one
> machine I get an error that it does not like the object and it skips it,
> is there different versions of vbscript on client machines?
>
> Regards
>
> D

My System SpecsSystem Spec
Old 09-21-2009   #3 (permalink)
Richard Mueller [MVP]


 
 

Re: Dictionary Object


"theNugget2009" <davidmcnaughton_1999@newsgroup> wrote in message
news:65067BCE-4978-45B8-94BA-874D6D683C23@newsgroup
Quote:

> Hi
>
> I currently have a vbscript running that uses a Dictionary Object, on one
> machine I get an error that it does not like the object and it skips it,
> is there different versions of vbscript on client machines?
>
> Regards
>
> D
I have never found a version of WSH or VBScript that does not support the
dictionary object. I've used it on Windows 95 clients (WSH version 5.1). VB
6 programs must reference the scripting runtime (scrrun.dll) to use the
object. You may need to post some code with the error message and which line
raises the error.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Old 09-22-2009   #4 (permalink)


vista x64
 
 

Re: Dictionary Object

I have exactly the same problem. On Vista X64 - the VB reference Microsoft Scripting Runtime does not seem to exist and therefore the Dictionary Object in VBA cannot be used.
My System SpecsSystem Spec
Old 09-22-2009   #5 (permalink)
Richard Mueller [MVP]


 
 

Re: Dictionary Object


"investor" <guest@newsgroup-email.com> wrote in message
news:829fafac64e716bb05c131ca8bb10d5c@newsgroup-gateway.com...
Quote:

>
> I have exactly the same problem. On Vista X64 - the VB reference
> Microsoft Scripting Runtime does not seem to exist and therefore the
> Dictionary Object in VBA cannot be used.
>
>
> --
> investor
My 32-bit Vista has the MS Scripting Runtime (scrrun.dll). I don't have a
64-bit OS to check, but documentation indicates it is (or used to be)
installed with Microsoft Office, WSH, VBScript, and Internet Explorer. This
runtime would be required to use a dictionary object in a VB program, and I
assume VBA. It can also be deployed by setup programs, for example a setup
program that installs your VB6 application. If this runtime is not
available, this also means you cannot use the FileSystemObject. Are you sure
you do not have scrrun.dll on the computer?

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
object dictionary VB Script
datalist -- Object reference not set to an instance of an object. .NET General
Dictionary<TKey,TValue> as a Dictionary key in C# 2.0 .NET General
Testing object arrays using Compare-Object and -contains PowerShell
Adding canonical aliases for Compare-Object, Measure-Object, New-Object PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46