Sign in to follow this  
Followers 0
laurin1

Comparing Arrays and Arrays with String Indexes

4 posts in this topic

I guess AutoIt doesn't do string array indexes (ex. array['apple'], array['orange'])? Are there any plans to add this functionality?

The problem i have is i have two 500 element arrays that i'm having to compare and it's very, very slow. If i could call both by index, it would be much faster, as right now it has to cycle through 250000 comparisons. Any ideas?


Keith Davis

MCSA, ZCE, A+, N+

http://www.laurinkeithdavis.com

Share this post


Link to post
Share on other sites



I guess AutoIt doesn't do string array indexes (ex. array['apple'], array['orange'])? Are there any plans to add this functionality?

There is no native support for associative arrays in AuotIT, however there is a Hash UDF available which does what you want. See here:http://www.autoitscript.com/forum/index.php?showtopic=13947

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

I haven't tried the UDF, but I would start with a temporary ini file, me :lmao:

Share this post


Link to post
Share on other sites

I haven't tried the UDF, but I would start with a temporary ini file, me :lmao:

Actually, i used the hash UDF and it works great. Very fast!


Keith Davis

MCSA, ZCE, A+, N+

http://www.laurinkeithdavis.com

Share this post


Link to post
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
Sign in to follow this  
Followers 0