Jump to content

Hash (associative array) and scripting.dictionary?


Recommended Posts

I've read some suggestions to use Scripting.Dictionary to recreate associative array functionality found in other languages. My question is:

Is there any risk that I don't have control over this external Windows functionality? A user might not have the API on their system? (Maybe they have a stripped down version of Windows like the "embedded" version or an "Nlited" version (where people strip out unwanted extras)?

I know I can setup my own enumerators to mimic this functionality. And, that there are some user-supplied libraries with more functionality. I like Scripting.Dictionary better. But, worried about whether it's guaranteed to be on every Windows system.

Thanks

Link to comment
Share on other sites

This is why you can just put some error checking in your script. If the object can't be created, alert the user to download the Windows Script runtime.

Thanks. Is there an includeable .au3 that has become a de facto standard for associative array processing?

Enumerators don't work well for me because I need to dynamically create and modify the hash. Script.Dictionary is perfect, but I can't live with the hassle of some users having to install it.

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...